123456789101112131415161718192021222324252627282930313233343536373839404142 |
- (provide 'conf-ibuffer)
- (require 'ibuffer)
- (setq ibuffer-saved-filter-groups
- (quote (("default"
- ("Web"
- (or
- (mode . nxhtml-mode)
- (mode . web-mode)
- (mode . javascript-mode)
- (mode . js-mode)
- (mode . js2-mode)
- (mode . css-mode)
- )
- )
- ("Programming"
- (or
- (mode . c++-mode)
- (mode . c-mode)
- (mode . emacs-lisp-mode)
- (mode . makefile-gmake-mode)
- (mode . perl-mode)
- (mode . python-mode)
- (mode . php-mode)
- (mode . sh-mode)
- ;; etc
- ))
- ("Elisp"
- (mode . emacs-lisp-mode))
- ("Magit"
- (name . "\*magit.*\*"))
- ("Terminal"
- (mode . term-mode))
- ("Emacs"
- (name . "\*.*\*"))))))
- (add-hook 'ibuffer-mode-hook
- (lambda ()
- (ibuffer-switch-to-saved-filter-groups "default")))
- (global-set-key (kbd "C-x C-b") 'ibuffer)
|