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-modeusingdired-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-extensionswhich can be used to hide all files of a particular extension.

One thought on “Hide uninteresting files in dired-mode”