Move dired-omit-files to the README.md file

This commit is contained in:
James Cherti
2025-02-27 16:53:30 -05:00
parent 89f208e5e8
commit bad3433c32
2 changed files with 12 additions and 10 deletions

View File

@@ -787,6 +787,18 @@ And [add the elpaca bootstrap code](https://github.com/progfolio/elpaca?tab=read
;; modification date, etc.) and all the files in the `dired-omit-files' regular
;; expression for a cleaner display.
(add-hook 'dired-mode-hook #'dired-hide-details-mode)
;; Hide files from dired
(setq dired-omit-files (concat "\\`[.]\\'"
"\\|\\(?:\\.js\\)?\\.meta\\'"
"\\|\\.\\(?:elc|a\\|o\\|pyc\\|pyo\\|swp\\|class\\)\\'"
"\\|^\\.DS_Store\\'"
"\\|^\\.\\(?:svn\\|git\\)\\'"
"\\|^\\.ccls-cache\\'"
"\\|^__pycache__\\'"
"\\|^\\.project\\(?:ile\\)?\\'"
"\\|^flycheck_.*"
"\\|^flymake_.*"))
(add-hook 'dired-mode-hook #'dired-omit-mode)
;; Enable on-the-fly spell checking (Flyspell mode).