Evil: Work around PDF bindings overriding Image bindings

master
Pierre Neidhardt 2017-10-15 12:37:33 +01:00
parent b5b7d329ad
commit b337c581c6
1 changed files with 8 additions and 4 deletions

View File

@ -219,12 +219,16 @@
(with-eval-after-load 'outline (require 'init-evil-outline))
;;; TODO: `image-mode-map' is the parent of `pdf-view-mode-map'. A bug(?) in
;;; Evil overrides all image-mode-map bindings.
;;; See https://github.com/emacs-evil/evil/issues/938.
(with-eval-after-load 'pdf-view (require 'init-evil-pdf))
(with-eval-after-load 'image-mode (require 'init-evil-image))
(with-eval-after-load 'pdf-view
(require 'init-evil-pdf)
;; TODO: `image-mode-map' is the parent of `pdf-view-mode-map'. A bug(?) in
;; Evil overrides all image-mode-map bindings.
;; See https://github.com/emacs-evil/evil/issues/938.
;; A workaround is to re-load the image bindings after PDF bindings are set.
(load-library "init-evil-image"))
(with-eval-after-load 'term (require 'init-evil-term))
(with-eval-after-load 'ztree-diff (require 'init-evil-ztree))