Skip to content

Instantly share code, notes, and snippets.

View jvillste's full-sized avatar

Jukka Villstedt jvillste

View GitHub Profile
@jvillste
jvillste / ricks-clojure.el
Created September 9, 2011 20:33 — forked from RickMoynihan/ricks-clojure.el
elisp for SLIME and swank-clojure
(defun clojure-reset-namespace ()
"Reloads the current Clojure namespace by first removing it and
then re-evaluating the slime buffer. Use this to remove old
symbol definitions and reset the namespace to contain only what
is defined in your current Emacs buffer."
(interactive)
(save-buffer)
(slime-interactive-eval (concat "(remove-ns '" (slime-current-package) ")"))
(slime-compile-and-load-file))