summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-04-18 17:10:00 -0700
committerFranck Cuny <fcuny@twitter.com>2019-04-18 17:10:00 -0700
commitf7530b4a3c24fd90209758c6d22bc5b3ec1319c3 (patch)
treeb98581f7fc142edb04091fa4da042e79000cddcc /emacs.d/custom
parent[scripts] Add a directory for scripts. (diff)
downloademacs.d-f7530b4a3c24fd90209758c6d22bc5b3ec1319c3.tar.gz
[emacs] Ignore some files with dired.
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-navigation.el11
1 files changed, 11 insertions, 0 deletions
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))