From bad3433c32db76564e43ae654c439aec9be87094 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Thu, 27 Feb 2025 16:53:30 -0500 Subject: [PATCH] Move dired-omit-files to the README.md file --- README.md | 12 ++++++++++++ init.el | 10 ---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9ee8155..ff68357 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/init.el b/init.el index 5fc7c02..04d2ef6 100644 --- a/init.el +++ b/init.el @@ -431,16 +431,6 @@ ;; dired-omit-mode (setq dired-omit-verbose nil) -(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_.*")) ;; ls-lisp (setq ls-lisp-verbosity nil)