mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Bind RET/C-j instead of remapping newline
RET -> newline-and-indent C-j -> newline This is basically the opposite of the Emacs default.
This commit is contained in:
@ -9,12 +9,15 @@
|
||||
;;
|
||||
(map! [remap evil-jump-to-tag] #'projectile-find-tag
|
||||
[remap find-tag] #'projectile-find-tag
|
||||
[remap newline] #'newline-and-indent
|
||||
|
||||
;; Ensure there are no conflicts
|
||||
:nmvo doom-leader-key nil
|
||||
:nmvo doom-localleader-key nil
|
||||
|
||||
;; Swap RET/C-j in insert mode
|
||||
:i [remap newline] #'newline-and-indent
|
||||
:i "C-j" #'+default/newline
|
||||
|
||||
;; --- Global keybindings ---------------------------
|
||||
;; Make M-x available everywhere
|
||||
:gnvime "M-x" #'execute-extended-command
|
||||
|
Reference in New Issue
Block a user