From dec9d1162bd234381da0b37e1c9859dbfa5cc577 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 7 Jun 2022 16:22:29 +0800 Subject: dired-conf: modify dired-garbage-files-regexp * dired-conf.el (dired-garbage-files-regexp): Match some file extensions which represent files that I do not need to keep around. --- dired-conf.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dired-conf.el') diff --git a/dired-conf.el b/dired-conf.el index c29c937..512ee3a 100644 --- a/dired-conf.el +++ b/dired-conf.el @@ -41,6 +41,13 @@ (add-hook 'dired-mode-hook #'hl-line-mode) +(require 'rx) + +(setq dired-garbage-files-regexp (rx (or "aux" "bak" "dvi" "log" + "orig" "rej" "toc" "out" + "nav" "snm") + eos)) + (require 'dired-aux) (setq dired-isearch-filenames 'dwim) -- cgit v1.2.3-18-g5258