Permalink
Browse files

Add clojurescript support

  • Loading branch information...
1 parent 2fa5b4e commit 517ae789c1ee53a429447f50549ea0c0a488226c @xeqi xeqi committed Sep 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 nrepl.el
View
@@ -1545,10 +1545,12 @@ under point, prompts for a var."
(defun nrepl-enable-on-existing-clojure-buffers ()
(interactive)
(add-hook 'clojure-mode-hook 'clojure-enable-nrepl)
+ (add-hook 'clojurescript-mode-hook 'clojure-enable-nrepl)
(save-window-excursion
(dolist (buffer (buffer-list))
(with-current-buffer buffer
- (when (eq major-mode 'clojure-mode)
+ (when (or (eq major-mode 'clojure-mode)
+ (eq major-mode 'clojurescript-mode))
(clojure-enable-nrepl))))))
;;;###autoload

0 comments on commit 517ae78

Please sign in to comment.