Emacs: Install clj-refactor-mode
Alan Pearce alan@alanpearce.co.uk
Sun, 14 Sep 2014 11:15:31 +0100
2 files changed, 11 insertions(+), 0 deletions(-)
M tag-emacs/emacs.d/Cask → tag-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.el → tag-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