all repos — nixfiles @ 54057e2086a7d7686ebb1343c11f7ee0e7436a15

System and user configuration, managed by nix and home-manager

Emacs: Load dired-narrow after dired
Alan Pearce alan@alanpearce.co.uk
Sun, 06 Mar 2016 18:23:03 +0100
commit

54057e2086a7d7686ebb1343c11f7ee0e7436a15

parent

6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1087,9 +1087,10 @@ to start filtering, =RET= to complete the filter and =g= to refresh the buffer, removing the filter.
 
 #+BEGIN_SRC emacs-lisp
-  (use-package dired-narrow
-    :bind (:map dired-mode-map
-                ("/" . dired-narrow)))
+  (with-eval-after-load 'dired
+    (use-package dired-narrow
+      :bind (:map dired-mode-map
+                  ("/" . dired-narrow))))
 #+END_SRC
 
 * Documentation