Skip to content

Instantly share code, notes, and snippets.

@gonewest818
Last active October 14, 2017 18:15
Show Gist options
  • Save gonewest818/c4188bc7fe91c7c8af504cecb313c416 to your computer and use it in GitHub Desktop.
Save gonewest818/c4188bc7fe91c7c8af504cecb313c416 to your computer and use it in GitHub Desktop.
cider-load-buffer-and-set-ns
(defun cider-load-buffer-and-set-ns (&optional buffer)
"Load buffer's file and set ns in nREPL"
(interactive)
(let ((buf (current-buffer))
(ns (cider-current-ns)))
(cider-load-buffer buf)
(cider-repl-set-ns ns)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment