summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.el10
2 files changed, 11 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index 6504e366..45032b8c 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -13,6 +13,7 @@
 (depends-on "cask")
 (depends-on "cedit")
 (depends-on "cider")
+(depends-on "clj-refactor")
 (depends-on "clojure-mode")
 (depends-on "company")
 (depends-on "company-go")
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 9b43ba48..10bdea93 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1181,6 +1181,16 @@ mouse-1: Display Line and Column Mode Menu"))))))
           (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