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.
Alan Pearce alan@alanpearce.co.uk
Wed, 16 Jul 2014 21:37:12 +0100
1 files changed, 4 insertions(+), 1 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -286,7 +286,10 @@ :config (progn (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)))