Fixes ibuffer with evil normal mode

This commit is contained in:
Emmet 2024-06-17 13:18:16 -05:00
parent 638352f3f9
commit 15a9e1d81b
2 changed files with 2 additions and 14 deletions

View file

@ -1249,13 +1249,7 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
(require 'all-the-icons-ibuffer)
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
(setq all-the-icons-ibuffer-color-icon t)
(evil-set-initial-state 'ibuffer-mode 'motion)
(evil-define-key 'motion 'ibuffer-mode
"j" 'evil-next-visual-line
"k" 'evil-previous-visual-line
"d" 'ibuffer-mark-for-delete
"q" 'kill-buffer
(kbd "<return>") 'ibuffer-visit-buffer)
(evil-set-initial-state 'ibuffer-mode 'normal)
;;;------ dired configuration ------;;;

View file

@ -1467,13 +1467,7 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
(require 'all-the-icons-ibuffer)
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
(setq all-the-icons-ibuffer-color-icon t)
(evil-set-initial-state 'ibuffer-mode 'motion)
(evil-define-key 'motion 'ibuffer-mode
"j" 'evil-next-visual-line
"k" 'evil-previous-visual-line
"d" 'ibuffer-mark-for-delete
"q" 'kill-buffer
(kbd "<return>") 'ibuffer-visit-buffer)
(evil-set-initial-state 'ibuffer-mode 'normal)
#+END_SRC
** Dired Configuration