summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el11
1 files changed, 7 insertions, 4 deletions
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