aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Emacs/.config/emacs/config.org22
1 files changed, 15 insertions, 7 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 29f3a7b..3e58bf6 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -1478,19 +1478,27 @@ are some corners I'd like to adjust).
(use-package dired
:defer t
:straight nil
- :commands (dired find-dired dired-jump)
- :hook
- (dired-mode-hook . dired-hide-details-mode)
- (dired-mode-hook . auto-revert-mode)
+ :commands (dired find-dired)
:init
- (setq-default dired-listing-switches "-AFBl --group-directories-first")
+ (setq-default dired-listing-switches "-AFBl --group-directories-first"
+ dired-omit-files "^\\.")
+ (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))
+ (revert-buffer))
+ :hook
+ (dired-mode-hook . dired-hide-details-mode)
+ (dired-mode-hook . auto-revert-mode)
+ (dired-hide-details-mode-hook . +dired/omit-dot-files)
:general
(leader
:infix "d"
"w" #'wdired-change-to-wdired-mode
"f" #'find-dired
- "D" #'+dired/maybe-frame
- "d" #'dired-jump
+ "d" #'dired
+ "D" #'dired-other-frame
"l" (proc (interactive) (find-dired "~/Text/PDFs/" "-iname 'cs[0-9][0-9][0-9].pdf' -or -iname 'ma[0-9][0-9][0-9]*.pdf'")))
:config
(with-eval-after-load "evil-collection"