I just found a neat trick today i.e hiding uninteresting(temporary files like backup or autosave files, all files of a particular extension or a particular set of files which match a regexp) files in
dired-mode
usingdired-x
. Here’s how I did it in my.emacs
:-
(use-package dired-x :config (progn (setq dired-omit-verbose nil) ;; toggle `dired-omit-mode' with C-x M-o (add-hook 'dired-mode-hook #'dired-omit-mode) (setq dired-omit-files (concat dired-omit-files "\\|^.DS_STORE$\\|^.projectile$"))))
There is also
dired-omit-extensions
which can be used to hide all files of a particular extension.
One thought on “Hide uninteresting files in dired-mode”