You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
;;; ibuffer-settings.el --- Settings for ibuffer. |
|
;;; |
|
;;; Commentary: |
|
;;; |
|
;;; Use C-x C-b to launch ibuffer. |
|
|
|
;; Hide all buffers with an asterisk |
|
(require 'ibuf-ext) |
|
(add-to-list 'ibuffer-never-show-predicates "^\\*") |
|
|
|
(setq ibuffer-saved-filter-groups |
|
(quote (("default" |
|
("dired" (mode . dired-mode)) |
|
("perl" (mode . cperl-mode)) |
|
("lisp" (or (mode . lisp-mode) |
|
(mode . emacs-lisp-mode))) |
|
("python" (mode . python-mode)) |
|
("git" (name . "^\\*magit\\*$")) |
|
("erc" (mode . erc-mode)) |
|
("planner" (or |
|
(name . "^\\*Calendar\\*$") |
|
(name . "^diary$") |
|
(mode . muse-mode))) |
|
("emacs" (or |
|
(name . "^\\*scratch\\*$") |
|
(name . "^\\*Messages\\*$"))) |
|
("svg" (name . "\\.svg")) ; group by file extension |
|
("gnus" (or |
|
(mode . message-mode) |
|
(mode . bbdb-mode) |
|
(mode . mail-mode) |
|
(mode . gnus-group-mode) |
|
(mode . gnus-summary-mode) |
|
(mode . gnus-article-mode) |
|
(name . "^\\.bbdb$") |
|
(name . "^\\.newsrc-dribble"))))))) |
|
|
|
(setq ibuffer-expert t) |
|
(add-hook 'ibuffer-mode-hook |
|
(lambda () |
|
(ibuffer-auto-mode 1) |
|
(ibuffer-switch-to-saved-filter-groups "default")))
|
|
|