Update evil-mode config.
This commit is contained in:
parent
45a2cde1e5
commit
61f849a922
@ -18,7 +18,7 @@
|
||||
:hook (after-init . evil-mode)
|
||||
:config
|
||||
;; Configuraciones básicas
|
||||
(setq evil-default-state 'emacs) ;; Modo por defecto en emacs
|
||||
;; (setq evil-default-state 'emacs) ;; Modo por defecto en emacs
|
||||
(setq evil-emacs-state-cursor 'bar) ;; Cursor de emacs state en bar
|
||||
(evil-set-leader 'motion (kbd "SPC")) ;; Leader key
|
||||
(evil-set-undo-system 'undo-redo)
|
||||
@ -50,15 +50,13 @@
|
||||
;; Arreglar yank-pop en normal mode
|
||||
(evil-define-key 'normal 'global (kbd "M-y") 'counsel-yank-pop)
|
||||
|
||||
;; Re-bindear C-p y C-n a como es normalmente
|
||||
;; Re-bindear keys a como funcionan en emacs.
|
||||
(evil-define-key 'normal 'global (kbd "C-p") 'previous-line)
|
||||
(evil-define-key 'normal 'global (kbd "C-n") 'next-line)
|
||||
(evil-define-key 'normal 'global (kbd "C-e") 'move-end-of-line)
|
||||
|
||||
;; Navegación entre frames
|
||||
(evil-define-key 'motion 'global (kbd "<leader>wh") 'windmove-left)
|
||||
(evil-define-key 'motion 'global (kbd "<leader>wj") 'windmove-down)
|
||||
(evil-define-key 'motion 'global (kbd "<leader>wk") 'windmove-up)
|
||||
(evil-define-key 'motion 'global (kbd "<leader>wl") 'windmove-right)
|
||||
(evil-define-key 'motion 'global (kbd "<leader>o") 'other-frame)
|
||||
|
||||
;; Atajos con leader key para frames
|
||||
(evil-define-key 'motion 'global (kbd "<leader>0") 'delete-window)
|
||||
@ -85,7 +83,8 @@
|
||||
;; Iniciar en normal state si es un lenguaje de programación u org-mode
|
||||
;; (evil-set-initial-state 'prog-mode 'normal)
|
||||
;; (evil-set-initial-state 'org-mode 'normal)
|
||||
(evil-set-initial-state 'dashboard-mode 'normal)
|
||||
;; (evil-set-initial-state 'dashboard-mode 'normal)
|
||||
(evil-set-initial-state 'dired 'normal)
|
||||
)
|
||||
|
||||
(provide 'init-evil)
|
||||
|
Loading…
Reference in New Issue
Block a user