|
|
@ -3,56 +3,43 @@ |
|
|
|
;;; Commentary: |
|
|
|
;;; Commentary: |
|
|
|
;;; |
|
|
|
;;; |
|
|
|
;;; Use C-x C-b to launch ibuffer. |
|
|
|
;;; 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 |
|
|
|
(setq ibuffer-saved-filter-groups |
|
|
|
'(("default" |
|
|
|
(quote (("default" |
|
|
|
("Emacs Configuration" (or (filename . ".emacs.d") |
|
|
|
("dired" (mode . dired-mode)) |
|
|
|
(filename . "init.el") |
|
|
|
("perl" (mode . cperl-mode)) |
|
|
|
(filename . "package.el") |
|
|
|
("lisp" (or (mode . lisp-mode) |
|
|
|
(filename . "private.el") |
|
|
|
(mode . emacs-lisp-mode))) |
|
|
|
(filename . "emacs.d"))) |
|
|
|
("python" (mode . python-mode)) |
|
|
|
("Org" (or (mode . org-mode) |
|
|
|
("git" (mode . magit-mode)) |
|
|
|
(filename . "OrgMode"))) |
|
|
|
("erc" (mode . erc-mode)) |
|
|
|
("Magit" (name . "magit")) |
|
|
|
("planner" (or |
|
|
|
("Help" (or (name . "\*Help\*") |
|
|
|
(name . "^\\*Calendar\\*$") |
|
|
|
(name . "\*Apropos\*") |
|
|
|
(name . "^diary$") |
|
|
|
(name . "\*info\*"))) |
|
|
|
(mode . muse-mode))) |
|
|
|
("Dired" (mode . dired-mode)) |
|
|
|
("emacs" (or |
|
|
|
;; Dev has groups for all languages you program in |
|
|
|
(name . "^\\*scratch\\*$") |
|
|
|
("Dev" (or |
|
|
|
|
|
|
|
(filename . ".c") |
|
|
|
|
|
|
|
(filename . ".cpp") |
|
|
|
|
|
|
|
(filename . ".hpp") |
|
|
|
|
|
|
|
(filename . ".h") |
|
|
|
|
|
|
|
(filename . ".java") |
|
|
|
|
|
|
|
(filename . ".py") |
|
|
|
|
|
|
|
(filename . ".lisp") |
|
|
|
|
|
|
|
(filename . ".properties") |
|
|
|
|
|
|
|
(filename . ".gradle") |
|
|
|
|
|
|
|
(filename . ".am") |
|
|
|
|
|
|
|
(filename . ".json") |
|
|
|
|
|
|
|
(mode . yaml-mode)) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
("Text" (or (filename . ".csv") |
|
|
|
|
|
|
|
(filename . ".tsv") |
|
|
|
|
|
|
|
(filename . ".txt") |
|
|
|
|
|
|
|
(filename . ".log"))) |
|
|
|
|
|
|
|
("Emacs" (or (name . "^\\*scratch\\*$") |
|
|
|
|
|
|
|
(name . "^\\*Messages\\*$"))) |
|
|
|
(name . "^\\*Messages\\*$"))) |
|
|
|
("Gnus" (or (mode . message-mode) |
|
|
|
("svg" (name . "\\.svg")) ; group by file extension |
|
|
|
|
|
|
|
("gnus" (or |
|
|
|
|
|
|
|
(mode . message-mode) |
|
|
|
(mode . bbdb-mode) |
|
|
|
(mode . bbdb-mode) |
|
|
|
(mode . mail-mode) |
|
|
|
(mode . mail-mode) |
|
|
|
(mode . gnus-group-mode) |
|
|
|
(mode . gnus-group-mode) |
|
|
|
(mode . gnus-summary-mode) |
|
|
|
(mode . gnus-summary-mode) |
|
|
|
(mode . gnus-article-mode) |
|
|
|
(mode . gnus-article-mode) |
|
|
|
(name . "^\\.bbdb$") |
|
|
|
(name . "^\\.bbdb$") |
|
|
|
(name . "^\\.newsrc-dribble"))) |
|
|
|
(name . "^\\.newsrc-dribble"))))))) |
|
|
|
))) |
|
|
|
|
|
|
|
;; Automatically keep buffers up to date and load the filter |
|
|
|
|
|
|
|
(add-hook 'ibuffer-mode-hook |
|
|
|
(add-hook 'ibuffer-mode-hook |
|
|
|
'(lambda () |
|
|
|
(lambda () |
|
|
|
(ibuffer-auto-mode 1) |
|
|
|
(ibuffer-auto-mode 1) |
|
|
|
(ibuffer-switch-to-saved-filter-groups "default"))) |
|
|
|
(ibuffer-switch-to-saved-filter-groups "default"))) |
|
|
|
;; Disable eager line numbering |
|
|
|
|
|
|
|
(add-hook 'ibuffer-mode-hook 'nolinum) |
|
|
|
(add-hook 'ibuffer-mode-hook |
|
|
|
(setq ibuffer-expert t) |
|
|
|
(lambda () |
|
|
|
(setq ibuffer-show-empty-filter-groups nil) |
|
|
|
(ibuffer-switch-to-saved-filter-groups "default"))) |
|
|
|