Skip to content

Instantly share code, notes, and snippets.

@k0f1sh
Created August 4, 2014 01:21
Show Gist options
  • Save k0f1sh/8515849ec63e83d012ed to your computer and use it in GitHub Desktop.
Save k0f1sh/8515849ec63e83d012ed to your computer and use it in GitHub Desktop.
lein oneoffでcider-jack-inできるように
;(require 'cider)
(defun oneoff-cider-jack-in ()
(interactive)
(if (null buffer-file-name)
(message "no file name")
(let ((cider-lein-parameters (format "oneoff --repl %s :headless"
(file-truename buffer-file-name))))
(cider-jack-in))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment