User evil-normal-state as ininitial only with some modes.
This commit is contained in:
parent
8e8544960e
commit
6972b11f0a
@ -28,7 +28,7 @@
|
|||||||
(evil-set-leader 'motion (kbd "SPC")) ;; Leader key
|
(evil-set-leader 'motion (kbd "SPC")) ;; Leader key
|
||||||
(evil-set-undo-system 'undo-redo)
|
(evil-set-undo-system 'undo-redo)
|
||||||
|
|
||||||
;; Arreglar el problemita con corfu
|
;; Arreglar el problemita con corfu-quit y el cambio de modos
|
||||||
(evil-define-key 'insert 'global (kbd "<escape>") '(lambda ()
|
(evil-define-key 'insert 'global (kbd "<escape>") '(lambda ()
|
||||||
"Call `corfu-quit' and then return to Normal State."
|
"Call `corfu-quit' and then return to Normal State."
|
||||||
(interactive)
|
(interactive)
|
||||||
@ -109,14 +109,18 @@
|
|||||||
(evil-define-key 'motion 'global (kbd "<leader>rg") 'consult-ripgrep) ;; Búsqueda rápida con ripgrep
|
(evil-define-key 'motion 'global (kbd "<leader>rg") 'consult-ripgrep) ;; Búsqueda rápida con ripgrep
|
||||||
(evil-define-key 'motion 'global (kbd "<leader>gi") 'imenu) ;; imenu
|
(evil-define-key 'motion 'global (kbd "<leader>gi") 'imenu) ;; imenu
|
||||||
|
|
||||||
;; Iniciar en normal state si es un lenguaje de programación u org-mode
|
;; Iniciar en normal state solo en modos específicos
|
||||||
;; (evil-set-initial-state 'prog-mode 'normal)
|
(setq evil-default-state 'emacs) ;; Modo por defecto en emacs
|
||||||
;; (evil-set-initial-state 'org-mode 'normal)
|
(evil-set-initial-state 'prog-mode 'normal)
|
||||||
|
(evil-set-initial-state 'org-mode 'normal)
|
||||||
|
(evil-set-initial-state 'text-mode 'normal)
|
||||||
|
(evil-set-initial-state 'csv-mode 'normal)
|
||||||
|
(evil-set-initial-state 'fundamental-mode 'normal)
|
||||||
(evil-set-initial-state 'dashboard-mode 'normal)
|
(evil-set-initial-state 'dashboard-mode 'normal)
|
||||||
(evil-set-initial-state 'dired 'normal)
|
(evil-set-initial-state 'dired 'normal)
|
||||||
(evil-set-initial-state 'vterm-mode 'emacs)
|
;; (evil-set-initial-state 'vterm-mode 'emacs)
|
||||||
(evil-set-initial-state 'magit-mode 'emacs)
|
;; (evil-set-initial-state 'magit-mode 'emacs)
|
||||||
(evil-set-initial-state 'git-commit-mode 'emacs)
|
;; (evil-set-initial-state 'git-commit-mode 'emacs)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Funciones y atajos de teclas especiales para evil cuando estamo en org-mode.
|
;; Funciones y atajos de teclas especiales para evil cuando estamo en org-mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user