This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |