From b23972b9d59c8da50b56692cbe37e95edac4c301 Mon Sep 17 00:00:00 2001 From: "jaccarmac@gmail.com" Date: Wed, 12 Nov 2014 20:02:02 +0000 Subject: [PATCH] Add Clojure editing setup. FossilOrigin-Name: 4eae73222a67bc1b201d36eb708d9c4a415853f1 --- dot-emacs-dot-d.org | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/dot-emacs-dot-d.org b/dot-emacs-dot-d.org index 20d86d6..1aa1858 100644 --- a/dot-emacs-dot-d.org +++ b/dot-emacs-dot-d.org @@ -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. @@ -165,4 +193,8 @@ Now, for some code. <> <> + + <> + + <> #+END_SRC