Remove ".." from dired-omit-files

This commit is contained in:
James Cherti
2025-02-18 12:14:49 -05:00
parent 66d7e98c15
commit fab5ebecaf
2 changed files with 6 additions and 5 deletions

View File

@@ -789,9 +789,11 @@ And [add the elpaca bootstrap code](https://github.com/progfolio/elpaca?tab=read
;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Window-Dividers.html
(add-hook 'after-init-hook #'window-divider-mode)
;; Automatically hide file details (permissions, size, modification date, etc.)
;; in Dired buffers for a cleaner display.
;; Dired buffers: Automatically hide file details (permissions, size,
;; 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)
(add-hook 'dired-mode-hook #'dired-omit-mode)
```
It is also recommended to read the following articles:

View File

@@ -429,10 +429,9 @@
;; Disable the prompt about killing the Dired buffer for a deleted directory.
(setq dired-clean-confirm-killing-deleted-buffers nil)
;; Dired-omit
;; dired-omit-mode
(setq dired-omit-verbose nil)
(setq dired-omit-files (concat "\\`[.]?#\\|\\`[.][.]?\\'"
(setq dired-omit-files (concat "\\`[.]\\'"
"\\|\\(?:\\.js\\)?\\.meta\\'"
"\\|\\.\\(?:elc|a\\|o\\|pyc\\|pyo\\|swp\\|class\\)\\'"
"\\|^\\.DS_Store\\'"