mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -15,8 +15,8 @@
|
|||||||
:nmvo doom-localleader-key nil
|
:nmvo doom-localleader-key nil
|
||||||
|
|
||||||
;; Swap RET/C-j in insert mode
|
;; Swap RET/C-j in insert mode
|
||||||
:i [remap newline] #'newline-and-indent
|
:gi "RET" #'newline-and-indent
|
||||||
:i "C-j" #'+default/newline
|
:i "C-j" #'+default/newline
|
||||||
|
|
||||||
;; --- Global keybindings ---------------------------
|
;; --- Global keybindings ---------------------------
|
||||||
;; Make M-x available everywhere
|
;; Make M-x available everywhere
|
||||||
|
Reference in New Issue
Block a user