From f7530b4a3c24fd90209758c6d22bc5b3ec1319c3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 18 Apr 2019 17:10:00 -0700 Subject: [emacs] Ignore some files with dired. --- emacs.d/custom/fcuny-navigation.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/emacs.d/custom/fcuny-navigation.el b/emacs.d/custom/fcuny-navigation.el index bf55994..18ad2de 100644 --- a/emacs.d/custom/fcuny-navigation.el +++ b/emacs.d/custom/fcuny-navigation.el @@ -55,6 +55,17 @@ (let ((gls (executable-find "/opt/twitter/bin/gls"))) (when gls (setq insert-directory-program gls)))) +(use-package dired-x + :ensure nil + :config + (progn + (setq dired-omit-verbose nil) + ;; hide backup, autosave, *.*~ files + ;; omit mode can be toggled using `C-x M-o' in dired buffer. + (add-hook 'dired-mode-hook #'dired-omit-mode) + (setq dired-omit-files + (concat dired-omit-files "\\|^.DS_STORE$\\|^.localized$\\|^.projectile$\\|^.git$")))) + (use-package ibuffer :bind ("C-x C-b" . ibuffer)) -- cgit 1.4.1