diff options
author | Case Duckworth | 2021-05-22 16:44:27 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-22 16:44:27 -0500 |
commit | c1e9d3263811ffa689c20f2c339fb535604462ae (patch) | |
tree | 081e4080a3ce799ce8061e783e6de112ae132f84 | |
parent | Add keybind for `flyspell-start' (diff) | |
download | emacs-c1e9d3263811ffa689c20f2c339fb535604462ae.tar.gz emacs-c1e9d3263811ffa689c20f2c339fb535604462ae.zip |
Further customize ibuffer
- sort groups - hide empty groups - use expert mode
-rw-r--r-- | init.el | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/init.el b/init.el index a8b0213..0c0fec9 100644 --- a/init.el +++ b/init.el | |||
@@ -382,26 +382,39 @@ | |||
382 | (:option ibuffer-saved-filter-groups | 382 | (:option ibuffer-saved-filter-groups |
383 | '(("default" | 383 | '(("default" |
384 | ("dired" (mode . dired-mode)) | 384 | ("dired" (mode . dired-mode)) |
385 | ("elpher" (or (mode . elpher-mode) | ||
386 | (mode . gemini-mode))) | ||
387 | ("emacs" (or (name . "^\\*scratch\\*$") | 385 | ("emacs" (or (name . "^\\*scratch\\*$") |
388 | (name . "^\\*Messages\\*$"))) | 386 | (name . "^\\*Messages\\*$") |
389 | ("gnus" (or (mode . message-mode) | 387 | (name . "^\\*straight-process\\*$") |
390 | (mode . bbdb-mode) | 388 | (name . "^\\*Calendar\\*$"))) |
391 | (mode . mail-mode) | 389 | ("git" (or (name . "^\*magit") |
392 | (mode . gnus-group-mode) | 390 | (name . "^\magit"))) |
393 | (mode . gnus-summary-mode) | ||
394 | (mode . gnus-article-mode) | ||
395 | (name . "^\\.bbdb$") | ||
396 | (name . "^\\.newsrc-dribble"))) | ||
397 | ("help" (or (mode . help-mode) | 391 | ("help" (or (mode . help-mode) |
398 | (mode . Info-mode) | 392 | (mode . Info-mode) |
399 | (mode . helpful-mode)))))) | 393 | (mode . helpful-mode))) |
394 | ("messaging" (or (mode . message-mode) | ||
395 | (mode . bbdb-mode) | ||
396 | (mode . mail-mode) | ||
397 | (mode . gnus-group-mode) | ||
398 | (mode . gnus-summary-mode) | ||
399 | (mode . gnus-article-mode) | ||
400 | (name . "^\\.bbdb$") | ||
401 | (name . "^\\.newsrc-dribble") | ||
402 | (mode . erc-mode))) | ||
403 | ("shell" (or (mode . eshell-mode) | ||
404 | (mode . shell-mode) | ||
405 | (mode . vterm-mode))) | ||
406 | ("web" (or (mode . elpher-mode) | ||
407 | (mode . gemini-mode) | ||
408 | (mode . eww-mode)))))) | ||
400 | (:global "C-x C-b" ibuffer) | 409 | (:global "C-x C-b" ibuffer) |
401 | 410 | ||
402 | (defun ibuffer-filter-to-default () | 411 | (defun ibuffer-filter-to-default () |
403 | (ibuffer-switch-to-saved-filter-groups "default")) | 412 | (ibuffer-switch-to-saved-filter-groups "default")) |
404 | (:hook ibuffer-filter-to-default)) | 413 | (:hook ibuffer-filter-to-default) |
414 | |||
415 | (:also-load ibuf-ext) | ||
416 | (:option ibuffer-show-empty-filter-groups nil | ||
417 | ibuffer-expert t)) | ||
405 | 418 | ||
406 | (setup imenu | 419 | (setup imenu |
407 | (:option imenu-auto-rescan t)) | 420 | (:option imenu-auto-rescan t)) |