Replace featurep with with-eval-after-load

This allows binding keys when dired-subtree is loaded at a later time.
This commit is contained in:
Michael Bogdan 2019-10-15 17:41:45 +02:00 committed by James N
parent eafb362f98
commit b1d6db98c1
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@
";e" 'epa-dired-do-encrypt)
;; dired-subtree commands
(when (featurep 'dired-subtree)
(with-eval-after-load 'dired-subtree
(evil-collection-define-key 'normal 'dired-mode-map
"I" 'dired-subtree-toggle
(kbd "TAB") 'dired-subtree-cycle