Skip to content
Browse files

Add nrepl-refresh and nrepl-reset to .emacs

  • Loading branch information...
1 parent a5ebb24 commit 0b3a251f1c7ec8cc08a232820079751236c542a4 @stuartsierra committed Nov 13, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 .emacs
View
13 .emacs
@@ -262,6 +262,19 @@
;; Avoid slow "Fontifying..." on OS X
(setq font-lock-verbose nil)
+(defun nrepl-refresh ()
+ (interactive)
+ (set-buffer "*nrepl*")
+ (goto-char (point-max))
+ (insert "(clojure.tools.namespace.repl/refresh)")
+ (nrepl-return))
+
+(defun nrepl-reset ()
+ (interactive)
+ (set-buffer "*nrepl*")
+ (goto-char (point-max))
+ (insert "(user/reset)")
+ (nrepl-return))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; zap-up-to-char

0 comments on commit 0b3a251

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