Clojure development with Spacemacs

Clojure-cider-spacemacs-logo

This is an introduction to developing Clojure applications using Emacs, specifically based on the Spacemacs configuration for Emacs and CIDER. The aim is to help you be productive with those tools as quickly as possible.

Spacemacs is a community-driven project that provides a simple way to add lots of extra functionality to Emacs, without having to manage packages yourself or spend time writing common configuration code.

Topics covered in Workshop

This workshop will cover the following topics:

  • Adding the Clojure layer
  • Running the REPL & evaluating code
  • Running tests & test reports
  • Structural editing (smartparens/paredit fun)
  • Emacs common commands
  • Emacs cool stuff (multiple cursors, kill-ring / visual undo
  • Clojure docs, auto-completion, snippets
  • Clojure refactoring with clj-refactor
  • Clojurescript development, figwheel and chestnut template
  • Org-mode for project documentation, literate programming & presentations
  • debugging basics (I rarely use the debugger so if anyone is willing to show how they use the debugger, please speak up).

This is not a guide to customising Emacs for Clojure development, except were there are useful additions to be made to Spacemacs and the Clojure layer.

Documentation

The Spacemacs Quick Start guide gives an overview of how to configure and learn Spacemacs. The Spacemacs documentation covers all aspects of Spacemacs in more detail.

Spacemacs also has built in documentation via:

Spacemacs Emacs Command
SPC h SPC M-m h SPC M-x helm-spacemacs

Configuration

Any customisations made to the standard Spacemacs install are contained in the Github repository Spacemacs configuration

Either browse the repository online or use your favorite git client or the following git clone command:

git clone https://github.com/practicalli/spacemacs-config.git

This creates a new directory called spacemacs-config that contains the configuration examples.

Additional Resources

Spacemacs

Clojure Getting Started

Clojure Reference

Tooling

Books & Tutorials

Author Last update
John Stevenson 14 January 2017

This work is licensed under a Creative Commons Attribution 4.0 ShareAlike License (including images & stylesheets). Creative Commons License
Spacemacs, Practicalli by John Stevenson is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at Spacemacs, Practicalli on Gitub.
Permissions beyond the scope of this license may be available at @jr0cket.

results matching ""

    No results matching ""