From ad023c348b5ba9057ab3841883d2310d3a37b6e2 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 16 Sep 2022 15:34:16 +0100 Subject: (Emacs)~+dired/omit-dot-files: dired-omit-mode set after +dired/omit-mode Flip ~+dired/omit-mode~'s value before toggling dired-omit-mode. --- Emacs/.config/emacs/config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index a35f9cb..0ab6831 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1500,8 +1500,8 @@ are some corners I'd like to adjust). (defvar +dired/omit-mode nil) (defun +dired/omit-dot-files () (interactive) - (dired-omit-mode (if +dired/omit-mode 1 -1)) (setq-local +dired/omit-mode (not +dired/omit-mode)) + (dired-omit-mode (if +dired/omit-mode 1 -1)) (revert-buffer)) :hook (dired-mode-hook . dired-hide-details-mode) -- cgit v1.2.3-13-gbd6f