From 3115ea51fb8eacda84181f99baa505c87dba8fad Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 2 Jan 2021 22:51:37 -0600 Subject: Configure dired --- config.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config.org b/config.org index e0eed32..8a3dc2c 100644 --- a/config.org +++ b/config.org @@ -1234,6 +1234,26 @@ This has to be done /before/ loading the package. It's included in =visual-fill * Applications +** Dired + +*** Expand subtrees + + + #+BEGIN_SRC emacs-lisp + (straight-use-package 'dired-subtree) + + (with-eval-after-load 'dired + (define-key dired-mode-map "i" #'dired-subtree-toggle)) + #+end_src + +*** Collapse singleton directories + + #+BEGIN_SRC emacs-lisp + (straight-use-package 'dired-collapse) + + (add-hook 'dired-mode-hook #'dired-collapse-mode) + #+end_src + ** Org mode I’ve put org mode under Applications, as opposed to Writing, because it’s more generally-applicable than that. -- cgit 1.4.1-21-gabe81