From 7e686a159367ab119b7a94683f97cb24e61dd1c4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 6 Sep 2021 12:50:27 -0500 Subject: Reorganize dired-mode setup --- init.el | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index dceb56f..a2fb982 100644 --- a/init.el +++ b/init.el @@ -455,6 +455,10 @@ AKA, DO NOT USE THIS FUNCTION!!!" (setup dired (:also-load dired-x) + (:straight dired-subtree + dired-collapse + dired-git-info) + (:option dired-recursive-copies 'always dired-recursive-deletes 'always delete-by-moving-to-trash t @@ -467,7 +471,12 @@ AKA, DO NOT USE THIS FUNCTION!!!" shell touch symlink) dired-dwim-target t) - (:hook dired-hide-details-mode + (:bind "TAB" #'dired-subtree-cycle + "i" #'dired-subtree-toggle + ")" #'dired-git-info-mode) + + (:hook dired-collapse-mode + dired-hide-details-mode hl-line-mode) (:global "C-x C-j" #'dired-jump) @@ -479,20 +488,7 @@ AKA, DO NOT USE THIS FUNCTION!!!" (:bind "RET" #'dired-w32-browser)) (:home (:straight dired-open) (autoload #'dired-find-alternate-file "dired-open" nil t) - (:bind "RET" #'dired-find-alternate-file))) - - (:straight dired-subtree) - (:bind "i" #'dired-subtree-toggle - "TAB" #'dired-subtree-cycle) - - (:straight dired-collapse) - (:hook dired-collapse-mode) - - (:straight dired-git-info) - (:bind ")" #'dired-git-info-mode) - - (:straight trashed) - (:option trashed-action-confirmer #'y-or-n-p))) + (:bind "RET" #'dired-find-alternate-file))))) (setup disabled ;; While this stuff is defined in novice.el, I'm using 'disabled' as the name -- cgit 1.4.1-21-gabe81