-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clojure enhancements #11431
Clojure enhancements #11431
Conversation
layers/+lang/clojure/packages.el
Outdated
@@ -229,7 +229,8 @@ | |||
|
|||
(evil-define-key 'normal cider-repl-mode-map | |||
(kbd "C-j") 'cider-repl-next-input | |||
(kbd "C-k") 'cider-repl-previous-input) | |||
(kbd "C-k") 'cider-repl-previous-input | |||
(kdb "RET") 'cider-repl-return) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this keybinding will make a vast improvement to the usability of the Clojure repl when using Evil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! But please add new key bindings to the clojure
layer readme file. There is a dedicated section for key bindings. 😸
@d12frosted I discussed with @jr0cket on the Clojurians Slack Spacemacs channel about putting |
We definately need keybindings for Vim Normal mode as it feels very inconsistent changing into vim insert mode just to call the repl history with I suggested Although P is used in the cider package itself, several of the keybindings have changed to conform to the mnemonic approch. If there were other history related keybindings already using P then it would make sense, but I havent seen this convention in Spacemacs. |
f56be43
to
53570fb
Compare
53570fb
to
0b8c9c2
Compare
I've removed the So I'm not sure if we even should add custom keybindings. @jr0cket I've also addressed the issue you ran into that RET in vim normal mode didn't evaluate: I had I typo on the patch. @d12frosted Since this PR doesn't introduce any new keybindings now, I think no changes to the README are needed. The RET keybinding just makes it behave as it should have been and RET is not documented for vim input mode in the repl as well. |
@kommen makes sense. I've tried to search for any other layer that defines key bindings for navigating the REPL history and didn't find one. But since REPL usually has it's own mode, I don't see a reason to add key bindings under Anyway, I've cherry-picked this commit into |
add a keybinding to open the cider repl history buffer in an evil way(see Clojure enhancements #11431 (comment))