mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Fixes ibuffer with evil normal mode
This commit is contained in:
parent
638352f3f9
commit
15a9e1d81b
|
@ -1249,13 +1249,7 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
(require 'all-the-icons-ibuffer)
|
(require 'all-the-icons-ibuffer)
|
||||||
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
|
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
|
||||||
(setq all-the-icons-ibuffer-color-icon t)
|
(setq all-the-icons-ibuffer-color-icon t)
|
||||||
(evil-set-initial-state 'ibuffer-mode 'motion)
|
(evil-set-initial-state 'ibuffer-mode 'normal)
|
||||||
(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)
|
|
||||||
|
|
||||||
;;;------ dired configuration ------;;;
|
;;;------ dired configuration ------;;;
|
||||||
|
|
||||||
|
|
|
@ -1467,13 +1467,7 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
(require 'all-the-icons-ibuffer)
|
(require 'all-the-icons-ibuffer)
|
||||||
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
|
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
|
||||||
(setq all-the-icons-ibuffer-color-icon t)
|
(setq all-the-icons-ibuffer-color-icon t)
|
||||||
(evil-set-initial-state 'ibuffer-mode 'motion)
|
(evil-set-initial-state 'ibuffer-mode 'normal)
|
||||||
(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)
|
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Dired Configuration
|
** Dired Configuration
|
||||||
|
|
Loading…
Reference in a new issue