From 3a81df70e1b439fd8faca444c517c313b154b540 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 30 Jul 2019 08:51:16 -0700 Subject: [emacs] drop guide key and update ibuffer config guide key was not that helpful, hydra is a better way to deal with that problem. update ibuffer config to group files by major mode. --- emacs.d/custom/fcuny-navigation.el | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/emacs.d/custom/fcuny-navigation.el b/emacs.d/custom/fcuny-navigation.el index 93a652b..0766155 100644 --- a/emacs.d/custom/fcuny-navigation.el +++ b/emacs.d/custom/fcuny-navigation.el @@ -51,15 +51,23 @@ (setq dired-omit-files (concat dired-omit-files "\\|^.DS_Store$\\|^.localized$\\|^.projectile$\\|^.git$")))) -(use-package guide-key - :ensure t - :config - (guide-key-mode t) - :custom - (guide-key/guide-key-sequence '("C-x"))) - (use-package ibuffer - :bind ("C-x C-b" . ibuffer)) + :bind ("C-x C-b" . ibuffer) + :custom + (ibuffer-saved-filter-groups + (quote (("default" + ("go" (mode . go-mode)) + ("python" (mode . python-mode)) + ("yaml" (mode . yaml-mode)) + ("org" (mode . org-mode)) + ("dired" (mode . dired-mode)) + ("Emacs" (or + (mode . emacs-lisp-mode) + (name . "^\\*scratch\\*$") + (name . "^\\.emacs") + (name . "^\\*Messages\\*$"))))))) + :init + (add-hook 'ibuffer-mode-hook (lambda () (ibuffer-switch-to-saved-filter-groups "default")))) (use-package ivy :ensure t -- cgit 1.4.1