summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2018-11-30 10:38:06 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2018-11-30 10:38:06 +0100
commit808319f407067b5eb26f4300b55544773a253b82 (patch)
treeb21e290153bf3cca5fcd50677d41a6d2d09f9188
parentc5b15b13a2ae3ea27e029097bc527eb910566140 (diff)
downloaddotfiles-808319f407067b5eb26f4300b55544773a253b82.tar.xz
Add ibuffer grouping configuration
-rw-r--r--.emacs17
1 files changed, 17 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index 216037a..6a58986 100644
--- 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.