diff options
-rw-r--r-- | init.el | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/init.el b/init.el index b7de479..94e2a0e 100644 --- a/init.el +++ b/init.el | |||
@@ -773,7 +773,27 @@ | |||
773 | 773 | ||
774 | (use-package ibuffer | 774 | (use-package ibuffer |
775 | :straight nil | 775 | :straight nil |
776 | :bind ([remap list-buffers] . #'ibuffer)) | 776 | :bind ([remap list-buffers] . #'ibuffer) |
777 | ;; from http://martinowen.net/blog/2010/02/03/tips-for-emacs-ibuffer.html | ||
778 | :init | ||
779 | (setq ibuffer-saved-filter-groups ; this could still be improved | ||
780 | '(("home" | ||
781 | ("emacs-config" (or (filename . ".emacs.d") | ||
782 | (filename . "etc/emacs"))) | ||
783 | ("Org" (or (mode . org-mode) | ||
784 | (filename . "OrgMode"))) | ||
785 | ("Dired" (mode . dired-mode)) | ||
786 | ("Magit" (name . "magit")) | ||
787 | ("Help" (or (name . "\*Help\*") | ||
788 | (name . "\*Apropos\*") | ||
789 | (name . "\*info\*"))))) | ||
790 | ibuffer-expert t ; don't ask if i wanna kill unmodifieds | ||
791 | ibuffer-show-empty-filter-groups nil | ||
792 | ) | ||
793 | (defun hook--ibuffer-setup () | ||
794 | (ibuffer-auto-mode +1) | ||
795 | (ibuffer-switch-to-saved-filter-groups "home")) | ||
796 | (add-hook 'ibuffer-mode-hook #'hook--ibuffer-setup)) | ||
777 | 797 | ||
778 | (setq-default | 798 | (setq-default |
779 | browse-url-browser-function 'browse-url-firefox | 799 | browse-url-browser-function 'browse-url-firefox |