summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tag-emacs/emacs.d/init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index b29e9c0..be54eec 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -286,7 +286,10 @@
             (diredp-toggle-find-file-reuse-dir 1)
             (unbind-key "C-h C-m" dired-mode-map)
             (bind-key "." #'diredp-describe-file dired-mode-map)
-            (dired-omit-mode 1)
+            (defun turn-on-dired-omit-mode ()
+              (interactive)
+              (dired-omit-mode 1))
+            (add-hook 'dired-mode-hook #'turn-on-dired-omit-mode)
             (setq dired-omit-files "#\\|\\.$"
                   dired-find-subdir t)))