Skip to content

Instantly share code, notes, and snippets.

@ddellacosta
Created August 6, 2015 08:55
Show Gist options
  • Save ddellacosta/4967694b765b91e9d687 to your computer and use it in GitHub Desktop.
Save ddellacosta/4967694b765b91e9d687 to your computer and use it in GitHub Desktop.
(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