conf-ibuffer.el 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. (provide 'conf-ibuffer)
  2. (require 'ibuffer)
  3. (setq ibuffer-saved-filter-groups
  4. (quote (("default"
  5. ("Web"
  6. (or
  7. (mode . nxhtml-mode)
  8. (mode . web-mode)
  9. (mode . javascript-mode)
  10. (mode . js-mode)
  11. (mode . js2-mode)
  12. (mode . css-mode)
  13. )
  14. )
  15. ("Programming"
  16. (or
  17. (mode . c++-mode)
  18. (mode . c-mode)
  19. (mode . emacs-lisp-mode)
  20. (mode . makefile-gmake-mode)
  21. (mode . perl-mode)
  22. (mode . python-mode)
  23. (mode . php-mode)
  24. (mode . sh-mode)
  25. ;; etc
  26. ))
  27. ("Elisp"
  28. (mode . emacs-lisp-mode))
  29. ("Magit"
  30. (name . "\*magit.*\*"))
  31. ("Terminal"
  32. (mode . term-mode))
  33. ("Emacs"
  34. (name . "\*.*\*"))))))
  35. (add-hook 'ibuffer-mode-hook
  36. (lambda ()
  37. (ibuffer-switch-to-saved-filter-groups "default")))
  38. (global-set-key (kbd "C-x C-b") 'ibuffer)