Fork me on GitHub
#emacs
<
2016-11-11
>
richiardiandrea00:11:14

sorry for the cross-post, but has anyone worked on a way to switch buffers from cider-mode to inf-mode and vice versa?

richiardiandrea00:11:26

sorry, I have just discovered that I actually don't need that, as cider is only activate when you jack-in

rui.yang08:11:53

@bolivier Hooray for your magic! It got fixed. Thanks so much!!

gregnwosu11:11:37

@josh.freckleton

(defun my-clojure-mode-hook ()
;; (insert other-commands-you-want-to-run-on-startup)
(cider-jack-in)) 
(add-hook 'clojure-mode-hook #‘my-clojure-mode-hook)

gregnwosu11:11:30

this is untested just my 10 second hack, note it will probably continue to attempt to jack-in even if you already have a repl running, you may need to add some code to deal with that