From 8ae83c45de0711dc92a8733b01f36c5b1254d127 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 4 Oct 2015 16:32:35 -0400 Subject: [PATCH] Add ibuffer config --- .emacs.d/init.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6a1c8e2..717e08a 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -26,7 +26,6 @@ ;; keybinds (global-set-key (kbd "C-z") `recompile) (global-set-key (kbd "C-S-z") `compile) -(global-set-key (kbd "C-x C-b") `ibuffer) ;; windmove keybinds (when (fboundp 'windmove-default-keybindings) @@ -45,6 +44,19 @@ :repo "quelpa/quelpa-use-package")) (require 'quelpa-use-package) +;; internal packages +(use-package ibuffer + :config + (global-set-key (kbd "C-x C-b") `ibuffer) + (setq ibuffer-saved-filter-groups + (quote (("default" + ("emacs" (or + (name . "^\\*scratch\\*$") + (name . "^\\*Messages\\*$"))))))) + (add-hook 'ibuffer-mode-hook (lambda () + (ibuffer-auto-mode 1) + (setq ibuffer-show-empty-filter-groups nil)))) + ;; external packages (required) (use-package company :quelpa :config