summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-03-04 18:36:14 -0600
committerCase Duckworth2021-03-04 18:36:14 -0600
commitc2fa5076c86f2292738f099328d151ab6c45d789 (patch)
tree269720a063abf462143710817a45ddfacef73385
parentRandom configs (diff)
downloademacs-c2fa5076c86f2292738f099328d151ab6c45d789.tar.gz
emacs-c2fa5076c86f2292738f099328d151ab6c45d789.zip
Configure ibuffer
-rw-r--r--init.el22
1 files changed, 21 insertions, 1 deletions
diff --git a/init.el b/init.el index a37c715..fdee1bb 100644 --- a/init.el +++ b/init.el
@@ -761,7 +761,27 @@
761 761
762(use-package ibuffer 762(use-package ibuffer
763 :straight nil 763 :straight nil
764 :bind ([remap list-buffers] . #'ibuffer)) 764 :bind ([remap list-buffers] . #'ibuffer)
765 ;; from http://martinowen.net/blog/2010/02/03/tips-for-emacs-ibuffer.html
766 :init
767 (setq ibuffer-saved-filter-groups ; this could still be improved
768 '(("home"
769 ("emacs-config" (or (filename . ".emacs.d")
770 (filename . "etc/emacs")))
771 ("Org" (or (mode . org-mode)
772 (filename . "OrgMode")))
773 ("Dired" (mode . dired-mode))
774 ("Magit" (name . "magit"))
775 ("Help" (or (name . "\*Help\*")
776 (name . "\*Apropos\*")
777 (name . "\*info\*")))))
778 ibuffer-expert t ; don't ask if i wanna kill unmodifieds
779 ibuffer-show-empty-filter-groups nil
780 )
781 (defun hook--ibuffer-setup ()
782 (ibuffer-auto-mode +1)
783 (ibuffer-switch-to-saved-filter-groups "home"))
784 (add-hook 'ibuffer-mode-hook #'hook--ibuffer-setup))
765 785
766(setq-default 786(setq-default
767 browse-url-browser-function 'browse-url-firefox 787 browse-url-browser-function 'browse-url-firefox