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.
46 lines
1.6 KiB
46 lines
1.6 KiB
2 years ago
|
;;; ibuffer-settings.el --- Settings for ibuffer.
|
||
|
;;;
|
||
|
;;; Commentary:
|
||
|
;;;
|
||
|
;;; Use C-x C-b to launch ibuffer.
|
||
2 years ago
|
|
||
|
;; Hide all buffers with an asterisk
|
||
|
(require 'ibuf-ext)
|
||
|
(add-to-list 'ibuffer-never-show-predicates "^\\*")
|
||
|
|
||
2 years ago
|
(setq ibuffer-saved-filter-groups
|
||
2 years ago
|
(quote (("default"
|
||
|
("dired" (mode . dired-mode))
|
||
|
("perl" (mode . cperl-mode))
|
||
|
("lisp" (or (mode . lisp-mode)
|
||
|
(mode . emacs-lisp-mode)))
|
||
|
("python" (mode . python-mode))
|
||
2 years ago
|
("git" (name . "^\\*magit\\*$"))
|
||
2 years ago
|
("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")))))))
|
||
|
|
||
2 years ago
|
(add-hook 'ibuffer-mode-hook
|
||
2 years ago
|
(lambda ()
|
||
|
(ibuffer-auto-mode 1)
|
||
|
(ibuffer-switch-to-saved-filter-groups "default")))
|
||
|
|
||
|
(add-hook 'ibuffer-mode-hook
|
||
|
(lambda ()
|
||
|
(ibuffer-switch-to-saved-filter-groups "default")))
|