all repos — nixfiles @ 6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c

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

Emacs: Install and configure dired-narrow

Alan Pearce
commit

6ed46d62249d7ada3f1203a6f03d7fa8bc58ae0c

parent

b2ba1b73df5044b461055e078e17378eccf1b25f

1 file changed, 13 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1079,6 +1079,19 @@ (bind-key "^" #'dired-subtree-maybe-up dired-mode-map)
(bind-key "i" #'dired-subtree-toggle dired-mode-map)))) #+END_SRC +** Dired-narrow +One can already use dired with wildcards to browse a filtered +directory listing, but it opens a new buffer. Dired-narrow is a +slightly nicer interface: with a currently-open dired buffer, use =/= +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))) +#+END_SRC + * Documentation ** ehelp