diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-07-12 18:44:17 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-07-12 18:44:17 -0400 |
commit | a95b0e4d6ce2c57376b9562e831782179321df66 (patch) | |
tree | 53b24a32f9a3c8afa1554b057b7baffa33f06198 /lisp | |
parent | d2b12f36ee2d6cdf9f4a53180ce2b2fa4ae2f92a (diff) | |
download | emacs.d-a95b0e4d6ce2c57376b9562e831782179321df66.tar.gz |
Install dired-narrow
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-dired.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/init-dired.el b/lisp/init-dired.el index ca444fa..86388b2 100644 --- a/lisp/init-dired.el +++ b/lisp/init-dired.el @@ -62,4 +62,15 @@ ;; This overrides `dired-find-file', which is also bound to "f". (define-key dired-mode-map "e" 'km/org-open-dired-marked-files)) +(require-package 'dired-narrow) + +(define-prefix-command 'km/dired-narrow-map) +(define-key km/dired-narrow-map "n" 'dired-narrow) +(define-key km/dired-narrow-map "f" 'dired-narrow-fuzzy) +(define-key km/dired-narrow-map "r" 'dired-narrow-regexp) + +(defun km/dired-narrow-bindings () + (local-set-key (kbd "C-c m") 'km/dired-narrow-map)) +(add-hook 'dired-mode-hook 'km/dired-narrow-bindings) + (provide 'init-dired) |