diff options
-rw-r--r-- | init.el | 22 |
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 |