Skip to main content
Notice removed Draw attention by Anders Kitson
Bounty Ended with Lorem Ipsum's answer chosen by Anders Kitson
deleted 2 characters in body; edited title
Source Link
NickD
  • 33.6k
  • 3
  • 30
  • 47

Key binding to run Clojure code in running cider ReplREPL and specified namespace

I have cider working just fine in emacsEmacs with my Clojure code. I am following a tutorial that uses Cursive as the IDE,IDE; in the tutorial they were able to binddefine a key binding to a line of code in a specific namespace.

The command I Wantwant to run in the cider REPL and the namespace user is

(go)

(go)

And whenWhen I hit C-M-S-g, it should fire in the REPL (I have a key that is mapped to hithits C-M-S all at once on my keyboard).

This command is for staringstarting my server and I will have others for halting and resetting, but it would be nice instead of going to the REPL and typing them in to have a kbdkey binding to do so.

Any help or pointSo how do I define key bindings that would run specific commands in the right direction would be greatly appreciated. Thanks.REPL?

Key binding to run Clojure code in running cider Repl and specified namespace

I have cider working just fine in emacs with my Clojure code. I am following a tutorial that uses Cursive as the IDE, in the tutorial they were able to bind a key binding to a line of code in a specific namespace.

The command I Want to run in the cider REPL and the namespace user is

(go)

And when I hit C-M-S-g it should fire in the REPL (I have a key that is mapped to hit C-M-S all at once on my keyboard.

This command is for staring my server and I will have others for halting and resetting but it would be nice instead of going to the REPL and typing them in to have a kbd to do so.

Any help or point in the right direction would be greatly appreciated. Thanks.

Key binding to run Clojure code in running cider REPL and specified namespace

I have cider working just fine in Emacs with my Clojure code. I am following a tutorial that uses Cursive as the IDE; in the tutorial they were able to define a key binding to a line of code in a specific namespace.

The command I want to run in the cider REPL and the namespace user is

(go)

When I hit C-M-S-g, it should fire in the REPL (I have a key that hits C-M-S all at once on my keyboard).

This command is for starting my server and I will have others for halting and resetting, but it would be nice instead of going to the REPL and typing them in to have a key binding to do so.

So how do I define key bindings that would run specific commands in the REPL?

Notice added Draw attention by Anders Kitson
Bounty Started worth 50 reputation by Anders Kitson
edited tags
Link
Drew
  • 79.1k
  • 10
  • 123
  • 257
Source Link

Key binding to run Clojure code in running cider Repl and specified namespace

I have cider working just fine in emacs with my Clojure code. I am following a tutorial that uses Cursive as the IDE, in the tutorial they were able to bind a key binding to a line of code in a specific namespace.

The command I Want to run in the cider REPL and the namespace user is

(go)

And when I hit C-M-S-g it should fire in the REPL (I have a key that is mapped to hit C-M-S all at once on my keyboard.

This command is for staring my server and I will have others for halting and resetting but it would be nice instead of going to the REPL and typing them in to have a kbd to do so.

Any help or point in the right direction would be greatly appreciated. Thanks.