Skip to content

Instantly share code, notes, and snippets.

@lsgrep
Created February 27, 2015 18:50
Show Gist options
  • Select an option

  • Save lsgrep/de827a83d384c84d4ac0 to your computer and use it in GitHub Desktop.

Select an option

Save lsgrep/de827a83d384c84d4ac0 to your computer and use it in GitHub Desktop.
Emacs Key bings for "reloaded"
(defun nrepl-refresh ()
(interactive)
(call-interactively 'cider-switch-to-relevant-repl-buffer)
(goto-char (point-max))
(insert "(clojure.tools.namespace.repl/refresh)")
(cider-repl-return))
(defun nrepl-reset ()
(interactive)
(call-interactively 'cider-switch-to-relevant-repl-buffer)
(goto-char (point-max))
(insert "(user/reset)")
(cider-repl-return))
(global-set-key (kbd "<f1>") 'nrepl-reset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment