Move dired-omit-files to the README.md file
This commit is contained in:
12
README.md
12
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
|
;; modification date, etc.) and all the files in the `dired-omit-files' regular
|
||||||
;; expression for a cleaner display.
|
;; expression for a cleaner display.
|
||||||
(add-hook 'dired-mode-hook #'dired-hide-details-mode)
|
(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)
|
(add-hook 'dired-mode-hook #'dired-omit-mode)
|
||||||
|
|
||||||
;; Enable on-the-fly spell checking (Flyspell mode).
|
;; Enable on-the-fly spell checking (Flyspell mode).
|
||||||
|
|||||||
10
init.el
10
init.el
@@ -431,16 +431,6 @@
|
|||||||
|
|
||||||
;; dired-omit-mode
|
;; dired-omit-mode
|
||||||
(setq dired-omit-verbose nil)
|
(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
|
;; ls-lisp
|
||||||
(setq ls-lisp-verbosity nil)
|
(setq ls-lisp-verbosity nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user