Skip to content

Instantly share code, notes, and snippets.

@flyingmachine
Last active December 18, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingmachine/5735498 to your computer and use it in GitHub Desktop.
Save flyingmachine/5735498 to your computer and use it in GitHub Desktop.
Woohoo! Wrote my first emacs key binding!
(defun nrepl-start-http-server ()
(interactive)
(nrepl-load-current-buffer)
(nrepl-set-ns (nrepl-current-ns))
(nrepl-interactive-eval "(def server (-main)) (println server)"))
(eval-after-load 'nrepl
'(define-key clojure-mode-map (kbd "C-c C-v") 'nrepl-server))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment