Add dired-subtree

This commit is contained in:
Wojciech Kozlowski 2019-07-29 16:31:22 +02:00
parent c5309015ce
commit 14ef54096e

View File

@ -21,6 +21,7 @@
'(ace-jump-mode
deadgrep
dired-subtree
discover
discover-my-major
duplicate-thing
@ -372,6 +373,18 @@
;; Automatically refresh dired buffer on changes.
(add-hook 'dired-mode-hook 'auto-revert-mode))
(use-package dired-subtree
:after dired
:bind (:map dired-mode-map
("TAB" . x-dired-subtree-toggle)
("<tab>" . x-dired-subtree-toggle))
:config
(defun x-dired-subtree-toggle ()
"Toggle dired subtree and revert buffer."
(interactive)
(dired-subtree-toggle)
(dired-revert)))
(use-package dired-x
:after dired
:init