summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2013-12-12 23:48:26 -0500
committerKyle Meyer <kyle@kyleam.com>2013-12-12 23:49:21 -0500
commit89bf9ed3c918a1f9e1bf8d8945dcccbc7c8fb941 (patch)
treeb3996f66531f8a81e5abe97fc5588016d39c4092 /init
parent2ea3e01d1d76bdae21d9ef1fe95e13f4ed89c64c (diff)
downloademacs.d-89bf9ed3c918a1f9e1bf8d8945dcccbc7c8fb941.tar.gz
Add .git and __pycache__ directories to dired omit
Diffstat (limited to 'init')
-rw-r--r--init/km-dired.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init/km-dired.el b/init/km-dired.el
index 348a066..30feff2 100644
--- a/init/km-dired.el
+++ b/init/km-dired.el
@@ -1,6 +1,12 @@
(put 'dired-find-alternate-file 'disabled nil)
(require 'dired-x)
+
+;; .git is present as part of `dired-omit-extensions', but this
+;; seems to only be taken into account if the a non-exension part
+;; exists
+(setq dired-omit-files (concat dired-omit-files "\\|\\.git$\\|__pycache__"))
+
(setq-default dired-omit-files-p t)
(setq dired-listing-switches "-alh")