summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")