Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add clj-refactor

  • Loading branch information...
commit 0139dfc52aff587e31f86d6a0effb7f2c3b1bb8a 1 parent 1daa124
@magnars authored
Showing with 10 additions and 0 deletions.
  1. +3 −0  .gitmodules
  2. +6 −0 setup-clojure-mode.el
  3. +1 −0  site-lisp/clj-refactor
View
3  .gitmodules
@@ -109,3 +109,6 @@
[submodule "site-lisp/fold-this"]
path = site-lisp/fold-this
url = https://github.com/magnars/fold-this.el.git
+[submodule "site-lisp/clj-refactor"]
+ path = site-lisp/clj-refactor
+ url = https://github.com/magnars/clj-refactor.el.git
View
6 setup-clojure-mode.el
@@ -9,6 +9,12 @@
(defadvice nrepl-load-current-buffer (before save-first activate)
(save-buffer))
+(require 'clj-refactor)
+(add-hook 'clojure-mode-hook (lambda ()
+ (clj-refactor-mode 1)
+ (cljr-add-keybindings-with-modifier "C-s-")
+ (define-key clj-refactor-map (kbd "C-x C-r") 'cljr-rename-file)))
+
(eval-after-load "nrepl"
'(progn
(define-key nrepl-mode-map (kbd "C-,") 'complete-symbol)
1  site-lisp/clj-refactor
@@ -0,0 +1 @@
+Subproject commit b48fdbb8834f62e437f790d033477b28f6f235dd
Please sign in to comment.
Something went wrong with that request. Please try again.