Created
August 6, 2015 08:55
-
-
Save ddellacosta/4967694b765b91e9d687 to your computer and use it in GitHub Desktop.
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 cider-with-profile (profile) | |
"Starts up a cider repl using jack-in with the specific lein profile | |
selected." | |
(interactive "sProfile: \ns") | |
(let* ((profile-str (symbol-name profile)) | |
(profile-str (replace-regexp-in-string ":\\(.*\\)$" "\\1" profile-str)) | |
(lein-params (concat "with-profile +" profile-str " repl :headless"))) | |
(setq cider-lein-parameters lein-params) | |
(cider-jack-in))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment