summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs/custom/fcuny-navigation.el20
1 files changed, 11 insertions, 9 deletions
diff --git a/emacs/custom/fcuny-navigation.el b/emacs/custom/fcuny-navigation.el
index 4f2541e..1268185 100644
--- a/emacs/custom/fcuny-navigation.el
+++ b/emacs/custom/fcuny-navigation.el
@@ -25,17 +25,20 @@
 
 (use-package dired-x
   :ensure nil
+  :hook ((dired-mode . dired-omit-mode))
   :config
-  (progn
-    (setq dired-omit-verbose nil)
-    ;; hide backup, autosave, *.*~ files
-    ;; omit mode can be toggled using `C-x M-o' in dired buffer.
-    (add-hook 'dired-mode-hook #'dired-omit-mode)
-    (setq dired-omit-files
-          (concat dired-omit-files "\\|^.DS_Store$\\|^.localized$\\|^.projectile$\\|^.git$"))))
+  (setq dired-omit-verbose nil)
+  ;; hide backup, autosave, *.*~ files
+  ;; omit mode can be toggled using `C-x M-o' in dired buffer.
+  (setq dired-omit-files
+        (concat dired-omit-files "\\|^.DS_Store$\\|^.localized$\\|^.projectile$\\|^.git$")))
 
 (use-package ibuffer
   :bind ("C-x C-b" . ibuffer)
+  :commands
+  ibuffer-auto-mode
+  ibuffer-switch-to-saved-filter-groups
+  ibuffer-do-sort-by-alphabetic
   :custom
   (ibuffer-saved-filter-groups
    (quote (("default"
@@ -69,9 +72,8 @@
 (use-package recentf
   :init (recentf-mode 1)
   :config
-  (add-to-list 'recentf-exclude "\\.emacs.d")
-  (add-to-list 'recentf-exclude ".+tmp......\\.org")
   (setq recentf-max-saved-items 500
+        recentf-exclude '(".gz" ".xz" ".zip")
         recentf-save-file (expand-file-name "var/recentf" user-emacs-directory)))
 
 (use-package rg