From f312863fa07648b20881fa7a615405d743532f5e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 25 Oct 2021 11:54:19 -0700 Subject: emacs: navigation related changes --- emacs/custom/fcuny-navigation.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'emacs') 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 -- cgit 1.4.1