From 70badad576856ff1ea34468ef60149c7c07b81cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 22 Oct 2024 07:58:18 -0700 Subject: emacs: tame dired buffers --- .emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2c66b81..6b4e0de 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -147,7 +147,7 @@ :ensure t :config - (setq dired-preview-delay 0.3) + (setq dired-preview-delay 0.5) (setq dired-preview-max-size (expt 2 20)) (setq dired-preview-ignored-extensions-regexp (concat "\\." @@ -164,6 +164,8 @@ ("\\.\\(mp[34]\\|m4a\\|ogg\\|flac\\|webm\\|mkv\\)" "mpv" "xdg-open") (".*" "xdg-open"))) +(setq dired-kill-when-opening-new-dired-buffer t) + ;;; Icons (use-package nerd-icons :ensure t ) (use-package nerd-icons-dired :ensure t -- cgit v1.2.3