Some dired changes

This commit is contained in:
Alexander Rosenberg 2024-01-06 22:39:55 -08:00
parent d1c289d6e6
commit 50f131a64d
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

14
init.el
View File

@ -1064,10 +1064,18 @@ If no name is given, list all bookmarks instead."
:ensure nil :ensure nil
:init :init
(setq-default dired-kill-when-opening-new-dired-buffer t) (setq-default dired-kill-when-opening-new-dired-buffer t)
(setq delete-by-moving-to-trash t
dired-recursive-copies 'always
dired-recursive-deletes 'always
dired-dwim-target t
dired-create-destination-dirs 'ask
dired-create-destination-dirs-on-trailing-dirsep t
dired-isearch-filenames 'dwim
dired-do-revert-buffer (lambda (dir)
(not (file-remote-p dir)))
dired-clean-up-buffers-too t
dired-clean-confirm-killing-deleted-buffers t)
(evil-define-key '(normal visual motion) dired-mode-map (evil-define-key '(normal visual motion) dired-mode-map
"u" #'dired-unmark
"U" #'dired-unmark-all-marks)
(evil-define-key '(normal visual motion) wdired-mode-map
"u" #'dired-unmark "u" #'dired-unmark
"U" #'dired-unmark-all-marks)) "U" #'dired-unmark-all-marks))