From df85ce1b98a18cffd7e1e2eda285daa9f8803244 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 16 Nov 2016 18:40:57 -0500 Subject: Rewrite dired-omit-files with rx --- init.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index e7b8dc1..35ed561 100644 --- a/init.el +++ b/init.el @@ -1319,10 +1319,13 @@ ;; seems to only be taken into account if a non-exension part ;; exists. (setq dired-omit-files - (concat dired-omit-files - "\\|^\\.git$\\|^\\.gitignore$" - "\\|^__pycache__$\\|^\\.snakemake$" - "\\|.Rhistory")) + (rx (or (and bol (zero-or-one ".") "#") + (and bol "." (zero-or-one ".") eol) + (and bol ".git" eol) + (and bol ".gitignore" eol) + (and bol "__pycache__" eol) + (and bol ".Rhistory" eol) + (and bol ".snakemake" eol)))) (setq dired-omit-extensions (append dired-omit-extensions -- cgit v1.2.3