Skip to content

Commit

Permalink
Add Clojure editing setup.
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 4eae73222a67bc1b201d36eb708d9c4a415853f1
  • Loading branch information
jaccarmac committed Nov 12, 2014
1 parent 436886c commit b23972b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions dot-emacs-dot-d.org
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,34 @@ Now, for some code.
:init (progn (require 'auto-complete-config)
(ac-config-default)))
#+END_SRC

* Clojure.

Clojure is a fantastic Lisp that gives me access to the JVM without having to
deal with Java.

CIDER is, in my opinion, the best way to edit Clojure in Emacs, bar
none. Loading is done in the standard quelpa way; The configuration options
are taken from CIDER's GitHub page.

#+NAME: cider
#+BEGIN_SRC emacs-lisp
(quelpa 'cider)
(use-package cider
:init (progn (add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)
(setq cider-repl-tab-command 'indent-for-tab-command)))
#+END_SRC

CIDER can be integrated with Auto-Complete painlessly by using the ac-cider
package.

#+NAME: ac-cider
#+BEGIN_SRC emacs-lisp
(quelpa 'ac-cider)
(use-package ac-cider
:init (progn (add-hook 'cider-mode-hook 'ac-cider-setup)
(add-hook 'cider-repl-mode-hook 'ac-cider-setup)))
#+END_SRC

* Tangle source code.

Expand Down Expand Up @@ -165,4 +193,8 @@ Now, for some code.
<<magit>>

<<auto-complete>>

<<cider>>

<<ac-cider>>
#+END_SRC

0 comments on commit b23972b

Please sign in to comment.