From 1fcdf96677414dc49afe2c3225ed79aa11ee8956 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 16 Jul 2014 21:37:12 +0100 Subject: Emacs: Run dired-omit-mode in the correct place Needs to run in dired-mode-hook. Create a wrapper command so that we can call it interactively otherwise. --- tag-emacs/emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))) -- cgit 1.4.1