fix(dired): dired-omit-files additions

- escape initial `.`
- use only noncapturing groups
This commit is contained in:
Itai Y. Efrat 2021-10-23 15:01:55 +03:00 committed by Henrik Lissner
parent a08ec4ab16
commit b3b875e226

View file

@ -157,10 +157,10 @@ we have to clean it up ourselves."
(setq dired-omit-verbose nil (setq dired-omit-verbose nil
dired-omit-files dired-omit-files
(concat dired-omit-files (concat dired-omit-files
"\\|^.DS_Store\\'" "\\|^\\.DS_Store\\'"
"\\|^.project\\(?:ile\\)?\\'" "\\|^\\.project\\(?:ile\\)?\\'"
"\\|^.\\(svn\\|git\\)\\'" "\\|^\\.\\(?:svn\\|git\\)\\'"
"\\|^.ccls-cache\\'" "\\|^\\.ccls-cache\\'"
"\\|\\(?:\\.js\\)?\\.meta\\'" "\\|\\(?:\\.js\\)?\\.meta\\'"
"\\|\\.\\(?:elc\\|o\\|pyo\\|swp\\|class\\)\\'")) "\\|\\.\\(?:elc\\|o\\|pyo\\|swp\\|class\\)\\'"))
;; Disable the prompt about whether I want to kill the Dired buffer for a ;; Disable the prompt about whether I want to kill the Dired buffer for a