This package is deprecated but can rather easily be replaced by
dired-omit-mode
like this:
(use-package dired
:hook (dired-mode . dired-omit-mode))
:bind (:map dired-mode-map
( "." . dired-omit-mode))
:custom (dired-omit-files (rx (seq bol ".")))
Also see #8.
Hide dotfiles in dired.
Via Melpa:
M-x package-install dired-hide-dotfiles
Manually:
- Clone this repo somewhere
- Run
package-install-file
and choose thedired-hide-dotfiles.el
file.
To activate this mode add something like this to your init.el:
(defun my-dired-mode-hook ()
"My `dired' mode hook."
;; To hide dot-files by default
(dired-hide-dotfiles-mode))
;; To toggle hiding
(define-key dired-mode-map "." #'dired-hide-dotfiles-mode)
(add-hook 'dired-mode-hook #'my-dired-mode-hook)