mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
narf:exit-mode-maybe (jk): don't affect undo history
This commit is contained in:
@ -246,9 +246,10 @@ to abort the minibuffer."
|
||||
(evil-define-command narf:exit-mode-maybe ()
|
||||
"Exits insert/replace mode using jk without the momentary pause caused by
|
||||
key-chord-define."
|
||||
:repeat change
|
||||
:repeat nil
|
||||
(interactive)
|
||||
(let ((modified (buffer-modified-p)))
|
||||
(let ((modified (buffer-modified-p))
|
||||
(buffer-undo-list t))
|
||||
(call-interactively 'self-insert-command)
|
||||
(let ((evt (read-event nil nil 0.4)))
|
||||
(cond
|
||||
|
Reference in New Issue
Block a user