diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-11-16 18:40:57 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-11-16 18:40:57 -0500 |
commit | df85ce1b98a18cffd7e1e2eda285daa9f8803244 (patch) | |
tree | ad1d926c269c091112cfc119c79c9781f469d534 | |
parent | a3be318dd49b59397eca5de837307bf34169888e (diff) | |
download | emacs.d-df85ce1b98a18cffd7e1e2eda285daa9f8803244.tar.gz |
Rewrite dired-omit-files with rx
-rw-r--r-- | init.el | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |