diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-07-30 08:51:16 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-07-30 08:51:16 -0700 |
commit | 3a81df70e1b439fd8faca444c517c313b154b540 (patch) | |
tree | e91a0398457e56d9c5dbab2b86f07f5f2151547b | |
parent | [emacs] ediff + paren (diff) | |
download | emacs.d-3a81df70e1b439fd8faca444c517c313b154b540.tar.gz |
[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.
-rw-r--r-- | emacs.d/custom/fcuny-navigation.el | 24 |
1 files 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 |