Change escape binding.

This commit is contained in:
KJ 2024-09-13 00:26:00 -04:00
parent 39862a753d
commit 4148fff8a1
1 changed files with 2 additions and 2 deletions

View File

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