Skip to content

Instantly share code, notes, and snippets.

@RickMoynihan
Created March 31, 2010 16:44
Show Gist options
  • Select an option

  • Save RickMoynihan/350555 to your computer and use it in GitHub Desktop.

Select an option

Save RickMoynihan/350555 to your computer and use it in GitHub Desktop.
(defun slime-reset-clojure-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)
(slime-interactive-eval (concat "(remove-ns '" (slime-current-package) ")"))
(slime-eval-buffer))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment