all repos — nixfiles @ 1fcdf96677414dc49afe2c3225ed79aa11ee8956

System and user configuration, managed by nix and home-manager

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
commit

1fcdf96677414dc49afe2c3225ed79aa11ee8956

parent

a1cd5937fc7d4a73c7b3a9a7dcae23ac5c09bde5

1 file changed, 4 insertions(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.eltag-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)))