# Hide uninteresting files in dired-mode

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 using dired-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
(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.