Evilify image-dired-thumbnail/display-image-mode-(map)s

This commit is contained in:
Daniel Nicolai 2021-07-06 14:03:11 +02:00 committed by duianto
parent dce3f1d722
commit 15ec5c57e9

View file

@ -33,6 +33,7 @@
(eq 'hybrid dotspacemacs-editing-style)))
(dired :location built-in)
(dired-x :location built-in)
(image-dired :location built-in)
(display-line-numbers :location built-in
:toggle (version<= "26" emacs-version))
(electric-indent-mode :location built-in)
@ -152,6 +153,20 @@
dired-jump-other-window
dired-omit-mode)))
(defun spacemacs-defaults/init-image-dired ()
(use-package image-dired
:defer t
:config
(evilified-state-evilify-map image-dired-thumbnail-mode-map
:mode image-dired-thumbnail-mode
:bindings
"j" 'image-dired-next-line
"k" 'image-dired-previous-line
"l" 'image-dired-forward-image
"h" 'image-dired-backward-image)
(evilified-state-evilify-map image-dired-display-image-mode-map
:mode image-dired-display-image-mode)))
(defun spacemacs-defaults/init-electric-indent-mode ()
(electric-indent-mode))