2014-12-11 12:07:49 +00:00
|
|
|
# Clojure contribution layer for Spacemacs
|
|
|
|
|
|
|
|
![logo](clojure.png)
|
|
|
|
|
2014-12-12 00:43:03 +00:00
|
|
|
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
|
|
|
|
**Table of Contents**
|
|
|
|
|
|
|
|
- [Clojure contribution layer for Spacemacs](#clojure-contribution-layer-for-spacemacs)
|
|
|
|
- [Description](#description)
|
|
|
|
- [Packages Included](#packages-included)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Cider](#cider)
|
|
|
|
- [Key Bindings](#key-bindings)
|
|
|
|
- [Documentation](#documentation)
|
|
|
|
- [Evaluation](#evaluation)
|
|
|
|
- [Goto](#goto)
|
|
|
|
- [REPL](#repl)
|
|
|
|
- [Tests](#tests)
|
2014-12-11 12:07:49 +00:00
|
|
|
|
2014-12-12 00:43:03 +00:00
|
|
|
<!-- markdown-toc end -->
|
2014-12-11 12:07:49 +00:00
|
|
|
|
2014-12-12 00:43:03 +00:00
|
|
|
## Description
|
2014-12-11 12:07:49 +00:00
|
|
|
|
2014-12-12 00:50:04 +00:00
|
|
|
This layer adds support for [Clojure][] language using [Cider][].
|
2014-12-11 12:07:49 +00:00
|
|
|
|
|
|
|
## Packages Included
|
|
|
|
|
2014-12-12 00:43:03 +00:00
|
|
|
- [Cider][]
|
2014-12-12 00:50:04 +00:00
|
|
|
- [clojure-mode][](https://github.com/clojure-emacs/clojure-mode)
|
|
|
|
- [Clj Refactor][](https://github.com/clojure-emacs/clj-refactor.el)
|
|
|
|
- [Cider Auto Complete][](https://github.com/clojure-emacs/ac-cider)
|
2014-12-11 12:07:49 +00:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
To use this contribution add it to your `~/.spacemacs`
|
|
|
|
|
|
|
|
```elisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers '(clojure)
|
|
|
|
"List of contribution to load."
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
2014-12-12 00:43:03 +00:00
|
|
|
### Cider
|
|
|
|
|
|
|
|
Cider requires nRepl middleware to function, please check the installation
|
2014-12-12 00:50:04 +00:00
|
|
|
instructions at the [cider repository][cider_install].
|
2014-12-11 12:07:49 +00:00
|
|
|
|
|
|
|
## Key Bindings
|
|
|
|
|
2014-12-12 00:43:03 +00:00
|
|
|
### Documentation
|
2014-12-11 12:07:49 +00:00
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
----------------------|------------------------------------------------------------
|
|
|
|
<kbd>SPC m d d</kbd> | cider-doc
|
|
|
|
<kbd>SPC m d g</kbd> | cider-grimoire
|
|
|
|
<kbd>SPC m d j</kbd> | cider javadoc
|
2014-12-12 00:43:03 +00:00
|
|
|
|
|
|
|
### Evaluation
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
----------------------|------------------------------------------------------------
|
2014-12-11 12:07:49 +00:00
|
|
|
<kbd>SPC m e b</kbd> | eval buffer
|
|
|
|
<kbd>SPC m e r</kbd> | eval region
|
|
|
|
<kbd>SPC m e s</kbd> | eval last sexp
|
2014-12-12 00:43:03 +00:00
|
|
|
|
|
|
|
### Goto
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
----------------------|------------------------------------------------------------
|
2014-12-11 12:07:49 +00:00
|
|
|
<kbd>SPC m g v</kbd> | goto var
|
|
|
|
<kbd>SPC m g e</kbd> | goto error
|
|
|
|
<kbd>SPC m g s</kbd> | goto symbol
|
2014-12-12 00:43:03 +00:00
|
|
|
|
|
|
|
### REPL
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
----------------------|------------------------------------------------------------
|
|
|
|
<kbd>SPC m j</kbd> | cider jack in
|
|
|
|
<kbd>SPC m k</kbd> | cider load-buffer
|
|
|
|
<kbd>SPC m z</kbd> | switch to repl
|
|
|
|
|
|
|
|
### Tests
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
----------------------|------------------------------------------------------------
|
2014-12-11 12:07:49 +00:00
|
|
|
<kbd>SPC m t t</kbd> | run tests
|
2014-12-12 00:43:03 +00:00
|
|
|
|
|
|
|
[Clojure]: http://clojure.org
|
|
|
|
[Cider]: https://github.com/clojure-emacs/cider
|
2014-12-12 00:50:04 +00:00
|
|
|
[cider_install]: (https://github.com/clojure-emacs/cider#installation)
|
|
|
|
[clojure-mode]: https://github.com/clojure-emacs/clojure-mode
|
|
|
|
[Clj Refactor]: https://github.com/clojure-emacs/clj-refactor.el
|
|
|
|
[Cider Auto Complete]: (https://github.com/clojure-emacs/ac-cider
|