From 50f131a64dc04eb2ece84ef51154ba7d4d619fbd Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 6 Jan 2024 22:39:55 -0800 Subject: [PATCH] Some dired changes --- init.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index b1dfa18..f0f2fbc 100644 --- a/init.el +++ b/init.el @@ -1064,10 +1064,18 @@ If no name is given, list all bookmarks instead." :ensure nil :init (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 - "u" #'dired-unmark - "U" #'dired-unmark-all-marks) - (evil-define-key '(normal visual motion) wdired-mode-map "u" #'dired-unmark "U" #'dired-unmark-all-marks))