mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix expand-region misplacing cursor on cancel/C-g #317
This commit is contained in:
@ -223,7 +223,12 @@ extension, try to guess one."
|
||||
command-log-mode-open-log-turns-on-mode t))
|
||||
|
||||
(def-package! expand-region
|
||||
:commands (er/expand-region er/contract-region er/mark-symbol er/mark-word))
|
||||
:commands (er/expand-region er/contract-region er/mark-symbol er/mark-word)
|
||||
:config
|
||||
(defun doom*quit-expand-region ()
|
||||
(when (memq last-command '(er/expand-region er/contract-region))
|
||||
(er/contract-region 0)))
|
||||
(advice-add #'evil-escape :before #'doom*quit-expand-region))
|
||||
|
||||
(def-package! help-fns+ ; Improved help commands
|
||||
:commands (describe-buffer describe-command describe-file
|
||||
|
Reference in New Issue
Block a user