practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
109 stars 33 forks source link

Launch component lifecycle #254

Open practicalli-johnny opened 4 years ago

practicalli-johnny commented 4 years ago

bind a project-specific Clojure function (e.g., integrant.repl/restart ) to an emacs command, so I can bind that to a convenient keystroke. I know there's cider-run but I need to enter the function name every time and then pick a namespace. is there any way to set up my .dir-locals.el or otherwise avoid the need for that interaction?

OK, this worked

(defun eucc-reset-project ()
  (interactive)
  (cider-ensure-connected)
  (cider-interactive-eval "(integrant.repl/reset)"))