commit 808319f407067b5eb26f4300b55544773a253b82 parent c5b15b13a2ae3ea27e029097bc527eb910566140 Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> Date: Fri, 30 Nov 2018 10:38:06 +0100 Add ibuffer grouping configuration Diffstat:
| M | .emacs | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/.emacs b/.emacs @@ -191,6 +191,23 @@ (add-hook 'dired-mode-hook 'diff-hl-dired-mode-unless-remote) +(add-to-list 'ibuffer-saved-filter-groups + '("my/ibuffer-groups" + ("REPL" + (or (derived-mode . comint-mode) + (mode . lisp-interaction-mode))) + ("Programming" (derived-mode . prog-mode)) + ("Folders" (mode . dired-mode)) + ("Chat" (mode . erc-mode)) + ("Documentation" + (or (mode . Info-mode) + (mode . Man-mode) + (mode . help-mode))))) + +(add-hook 'ibuffer-mode-hook + (lambda () + (ibuffer-switch-to-saved-filter-groups "my/ibuffer-groups"))) + ;; Helper functions and miscellaneous settings.