Change escape binding.

This commit is contained in:
KJ 2024-09-13 00:26:00 -04:00
parent 39862a753d
commit 4148fff8a1

View File

@ -30,7 +30,7 @@
(evil-set-undo-system 'undo-redo)
;; Arreglar el problemita con corfu-quit y el cambio de modos
(evil-define-key 'insert 'global (kbd "<escape>") '(lambda ()
(evil-define-key 'emacs 'global (kbd "<escape>") '(lambda ()
"Call `corfu-quit' and then return to Normal State."
(interactive)
(call-interactively 'corfu-quit)
@ -38,7 +38,7 @@
;; (evil-define-key 'normal 'global (kbd "<escape>") 'corfu-quit)
;; Cambiar a mode emacs con escape
(evil-define-key 'emacs 'global (kbd "<escape>") 'evil-normal-state)
;; (evil-define-key 'emacs 'global (kbd "<escape>") 'evil-normal-state)
;; Cambiar Insert state por emacs state.
(defalias 'evil-insert-state 'evil-emacs-state)