all repos — archive/dotfiles @ cd1a3326276e5229e458714dcfed493ad2ff81df

Superseded by nixfiles

Emacs: Install clj-refactor-mode
Alan Pearce alan@alanpearce.co.uk
Sun, 14 Sep 2014 11:15:31 +0100
commit

cd1a3326276e5229e458714dcfed493ad2ff81df

parent

e241ad6d6bb4431f71ed903a3449720cdcea2c9b

2 files changed, 11 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/Casktag-emacs/emacs.d/Cask
@@ -13,6 +13,7 @@ (depends-on "bind-key") (depends-on "cask")
 (depends-on "cedit")
 (depends-on "cider")
+(depends-on "clj-refactor")
 (depends-on "clojure-mode")
 (depends-on "company")
 (depends-on "company-go")
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1181,6 +1181,16 @@ :init (progn           (add-hook 'cider-repl-mode-hook (lambda () (highlight-changes-mode -1)))
           (add-hook 'clojure-mode-hook #'ap/lisp-setup)))
 
+(req-package clj-refactor
+  :defer t
+  :require clojure-mode
+  :config (progn
+            (cljr-add-keybindings-with-prefix "C-c C-m"))
+  :init (progn
+          (defun turn-on-clj-refactor-mode ()
+            (clj-refactor-mode 1))
+          (add-hook 'clojure-mode-hook #'turn-on-clj-refactor-mode)))
+
 (req-package cider
   :require clojure-mode
   :defer t