Skip to content
Browse files

Define compile-command for clojure-mode

  • Loading branch information...
1 parent a0033e4 commit 5b6c5eba097bfb3e0f9ed7089faf49b9a72d8c20 Michael Klishin committed Feb 18, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 bundles/clojure/init.el
View
9 bundles/clojure/init.el
@@ -7,6 +7,12 @@
(require 'clojure-mode)
(require 'clojure-test-mode)
+(add-hook 'clojure-mode-hook (lambda ()
+ (def compile-command "lein compile")))
+(add-hook 'nrepl-mode-hook (lambda ()
+ (def compile-command "lein compile")))
+
+
;; load bundle snippets
(yas/load-directory "~/emacsd/bundles/clojure/snippets")
@@ -36,8 +42,5 @@
(autoload 'paredit-mode "paredit" "Minor mode for pseudo-structurally editing Lisp code." t)
(add-hook 'clojure-mode-hook (lambda () (paredit-mode +1)))
-(add-hook 'emacs-lisp-mode-hook (lambda () (paredit-mode +1)))
-(add-hook 'lisp-mode-hook (lambda () (paredit-mode +1)))
-(add-hook 'lisp-interaction-mode-hook (lambda () (paredit-mode +1)))
(add-hook 'slime-repl-mode-hook (lambda () (paredit-mode +1)))
(add-hook 'nrepl-mode-hook (lambda () (paredit-mode +1)))

0 comments on commit 5b6c5eb

Please sign in to comment.
Something went wrong with that request. Please try again.