Skip to content

Instantly share code, notes, and snippets.

@jackrusher
Created March 20, 2018 09:16
Show Gist options
  • Save jackrusher/758f203ed53c5d2aa959515ef17a5fc1 to your computer and use it in GitHub Desktop.
Save jackrusher/758f203ed53c5d2aa959515ef17a5fc1 to your computer and use it in GitHub Desktop.
(defun maria-connect ()
(interactive)
(cider-connect "localhost" "9000") ; doesn't return the buffer in 0.16.0 😢
(with-current-buffer (cider-default-connection)
(cider-nrepl-send-request
`("op" "eval"
"ns" ,(cider-current-ns)
"code" "(do (in-ns 'shadow.cljs.devtools.api) (repl :live))")
(cider-repl-handler (current-buffer)))
(setq cider-repl-type "cljs")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment