diff options
author | Alan Pearce | 2014-09-09 20:25:18 +0100 |
---|---|---|
committer | Alan Pearce | 2014-09-09 20:25:18 +0100 |
commit | 80c7244e269f464b7fff2f1cfe501c4810d192f6 (patch) | |
tree | d7af2c5727dae065e0d5c00fc96ef2e643401592 | |
parent | bb978fb0233367f0fa62e2d0d15790ec96abdece (diff) | |
download | dotfiles-80c7244e269f464b7fff2f1cfe501c4810d192f6.tar.lz dotfiles-80c7244e269f464b7fff2f1cfe501c4810d192f6.tar.zst dotfiles-80c7244e269f464b7fff2f1cfe501c4810d192f6.zip |
Emacs: Set up clojure-mode and cider
-rw-r--r-- | tag-emacs/emacs.d/Cask | 2 | ||||
-rw-r--r-- | tag-emacs/emacs.d/init.el | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask index d0c5df4..6504e36 100644 --- a/tag-emacs/emacs.d/Cask +++ b/tag-emacs/emacs.d/Cask @@ -12,6 +12,8 @@ (depends-on "bind-key") (depends-on "cask") (depends-on "cedit") +(depends-on "cider") +(depends-on "clojure-mode") (depends-on "company") (depends-on "company-go") (depends-on "deferred") diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 4fc9a70..a51e7c7 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -1174,6 +1174,20 @@ mouse-1: Display Line and Column Mode Menu")))))) run-geiser run-racket)) +(req-package clojure-mode + :defer t + :init (progn + (add-hook 'cider-repl-mode-hook (lambda () (highlight-changes-mode -1))) + (add-hook 'clojure-mode-hook #'ap/lisp-setup))) + +(req-package cider + :require clojure-mode + :defer t + :config (progn + (setq nrepl-hide-special-buffers t) + (add-hook 'cider-mode-hook #'cider-turn-on-eldoc-mode) + (add-hook 'cider-repl-mode-hook #'paredit-mode))) + (req-package redshank :diminish " Λ" :defer t |