Remove ".." from dired-omit-files
This commit is contained in:
@@ -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
|
;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Window-Dividers.html
|
||||||
(add-hook 'after-init-hook #'window-divider-mode)
|
(add-hook 'after-init-hook #'window-divider-mode)
|
||||||
|
|
||||||
;; Automatically hide file details (permissions, size, modification date, etc.)
|
;; Dired buffers: Automatically hide file details (permissions, size,
|
||||||
;; in Dired buffers for a cleaner display.
|
;; 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-hide-details-mode)
|
||||||
|
(add-hook 'dired-mode-hook #'dired-omit-mode)
|
||||||
```
|
```
|
||||||
|
|
||||||
It is also recommended to read the following articles:
|
It is also recommended to read the following articles:
|
||||||
|
|||||||
5
init.el
5
init.el
@@ -429,10 +429,9 @@
|
|||||||
;; Disable the prompt about killing the Dired buffer for a deleted directory.
|
;; Disable the prompt about killing the Dired buffer for a deleted directory.
|
||||||
(setq dired-clean-confirm-killing-deleted-buffers nil)
|
(setq dired-clean-confirm-killing-deleted-buffers nil)
|
||||||
|
|
||||||
;; Dired-omit
|
;; dired-omit-mode
|
||||||
|
|
||||||
(setq dired-omit-verbose nil)
|
(setq dired-omit-verbose nil)
|
||||||
(setq dired-omit-files (concat "\\`[.]?#\\|\\`[.][.]?\\'"
|
(setq dired-omit-files (concat "\\`[.]\\'"
|
||||||
"\\|\\(?:\\.js\\)?\\.meta\\'"
|
"\\|\\(?:\\.js\\)?\\.meta\\'"
|
||||||
"\\|\\.\\(?:elc|a\\|o\\|pyc\\|pyo\\|swp\\|class\\)\\'"
|
"\\|\\.\\(?:elc|a\\|o\\|pyc\\|pyo\\|swp\\|class\\)\\'"
|
||||||
"\\|^\\.DS_Store\\'"
|
"\\|^\\.DS_Store\\'"
|
||||||
|
|||||||
Reference in New Issue
Block a user