Rebind RET rather than remapping newline
The remapping was global, preventing its use in insert mode anywhere. Binding to RET is less destructive.
This commit is contained in:
parent
b33b5ed624
commit
fe3a73c118
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@
|
|||
:nmvo doom-localleader-key nil
|
||||
|
||||
;; Swap RET/C-j in insert mode
|
||||
:i [remap newline] #'newline-and-indent
|
||||
:i "C-j" #'+default/newline
|
||||
:gi "RET" #'newline-and-indent
|
||||
:i "C-j" #'+default/newline
|
||||
|
||||
;; --- Global keybindings ---------------------------
|
||||
;; Make M-x available everywhere
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue