summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-22 11:55:47 -0500
committerCase Duckworth2021-04-22 11:55:47 -0500
commit6f3e287d49ce83814631b6441ad7429d5c18828d (patch)
tree7310a971da5ad4ea315753a65edef963925eeaaa
parentCorrect nnimap definition (diff)
downloademacs-6f3e287d49ce83814631b6441ad7429d5c18828d.tar.gz
emacs-6f3e287d49ce83814631b6441ad7429d5c18828d.zip
Setup `dired' better
Instead of resetting `setup-*' in each of dired's dependent packages, just
install them using `:straight' and configure them in blocks.
-rw-r--r--init.el42
1 files changed, 21 insertions, 21 deletions
diff --git a/init.el b/init.el index 2ecdfbd..c77cc6d 100644 --- a/init.el +++ b/init.el
@@ -508,27 +508,27 @@
508 (:hook dired-hide-details-mode 508 (:hook dired-hide-details-mode
509 hl-line-mode) 509 hl-line-mode)
510 (:global "C-x C-j" dired-jump) 510 (:global "C-x C-j" dired-jump)
511 (:bind "RET" dired-find-alternate-file) 511
512 (with-eval-after-load 'dired 512 (pcase acdw/system
513 (pcase acdw/system 513 (:work (:straight w32-browser)
514 (:work (setup (:straight w32-browser) 514 (autoload 'dired-w32-browser "w32-browser")
515 (define-key dired-mode-map (kbd "RET") #'dired-w32-browser))) 515 (:bind "RET" dired-w32-browser))
516 (:home (setup (:straight dired-open) 516 (:home (:straight dired-open)
517 (:option (prepend dired-open-functions) dired-open-xdg)))) 517 (:bind "RET" dired-find-alternate-file)
518 518 (:option (prepend dired-open-functions) dired-open-xdg)))
519 (setup (:straight dired-subtree) 519
520 (:with-map dired-mode-map 520 (:straight dired-subtree)
521 (:bind "i" dired-subtree-toggle 521 (:bind "i" dired-subtree-toggle
522 "TAB" dired-subtree-cycle))) 522 "TAB" dired-subtree-cycle)
523 523
524 (setup (:straight dired-collapse) 524 (:straight dired-collapse)
525 (:hook-into dired-mode)) 525 (:hook dired-collapse-mode)
526 526
527 (setup (:straight dired-git-info) 527 (:straight dired-git-info)
528 (define-key dired-mode-map ")" #'dired-git-info-mode)) 528 (:bind ")" dired-git-info-mode)
529 529
530 (setup (:straight trashed) 530 (:straight trashed)
531 (setq-default trashed-action-confirmer #'y-or-n-p)))) 531 (:option trashed-action-confirmer #'y-or-n-p))
532 532
533(setup (:straight magit) 533(setup (:straight magit)
534 (:leader "g" magit-status) 534 (:leader "g" magit-status)