spacemacs/contrib/lang/clojure
2015-02-19 21:59:53 -05:00
..
img Move layer images into img directories 2014-12-24 01:03:49 -05:00
config.el Added and moved prefix declarations to config.el 2015-02-16 20:37:16 +07:00
packages.el Sort key bindings in clojure layer 2015-02-19 21:59:53 -05:00
README.md clojure: mgv -> mgg; update docs 2015-02-19 07:08:24 -05:00

Clojure contribution layer for Spacemacs

logo

Table of Contents

Description

This layer adds support for Clojure language using Cider.

Packages Included

Install

Layer

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(clojure))

Pretty Symbols

Pretty symbols for anonymous functions, set literals and partial, like (λ [a] (+ a 5)), ƒ(+ % 5), ∈{2 4 6} and Ƥ.

To enable this feature, add the following snippet to the dotspacemacs/config section of your ~/.spacemacs file:

(setq clojure-enable-fancify-symbols t)

Or set this variable when loading the configuration layer:

(setq-default dotspacemacs-configuration-layers
'((clojure :variables clojure-enable-fancify-symbols t)))

Cider

Cider requires nRepl middleware to function, please check the installation instructions at the cider repository.

Key Bindings

Documentation

Key Binding       |                 Description

----------------------|------------------------------------------------------------ SPC m d d | cider doc SPC m d g | cider grimoire SPC m d j | cider javadoc

Evaluation

Key Binding       |                 Description

----------------------|------------------------------------------------------------ SPC m e b | eval buffer SPC m e r | eval region SPC m e s | eval last sexp

Goto

Key Binding       |                 Description

----------------------|------------------------------------------------------------ SPC m g g | goto var SPC m g e | goto error SPC m g r | goto resource SPC m g b | go back

REPL

Key Binding       |                 Description

----------------------|------------------------------------------------------------ SPC m j | cider jack in SPC m k | cider load-buffer SPC m z | switch to repl

Tests

Key Binding       |                 Description

----------------------|------------------------------------------------------------ SPC m t t | run tests