Fork me on GitHub
#cursive
<
2022-07-08
>
justin17:07:45

hi there -- clojure/cursive newbie here and trying to get things set up to work with colleagues using emacs. in the Clojure for the Brave and True book (emacs chapter) it says:

When editing Clojure, it's best to have a set of Clojure-specific key bindings, like C-c C-k to load the current buffer into a REPL and compile it.
is there a cursive equivalent for this keybinding to compile? we have some downstream tools that have compilation prerequisites and i'm trying to figure out how to compile individual files in cursive. thank you!

kennytilton19:07:36

My fingers want to say "shift-command-L"...yep, that loads the current file/namespace. "shift-command-P" sends the current top-level sexp to the repl.

justin19:07:08

oh nice, let me give it a try. thanks!

imre19:07:07

The intellij action name is "load file in repl" afair

kennytilton20:07:38

btw, @U03N2FSMV42, once you have launched a Clojure repl in I/J, there will be a whole new submenu for "REPL" on the Tools menu. It will have the clojure logo next to it. That will then show you various repl commands and their keychords, if any. And you can change keychord assignments in InteliJ with sufficient preferences/settings bashing.

justin23:07:10

worked like magic -- thank you!

onetom02:07:15

this article put together a very emacs-like keybinding config for cursive: http://mishadoff.com/blog/idea-for-clojure/ your cider colleagues might feel right at home with it.

gratitude-thank-you 1