Created
April 26, 2012 14:23
-
-
Save ahinz/2499930 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Use a better buffer switcher | |
(global-set-key (kbd "C-x C-b") 'ibuffer) | |
(global-set-key (kbd "C-c C-l e") 'erc-buffers) | |
(global-set-key (kbd "C-c C-l t") 'term-buffers) | |
(defun erc-buffers () | |
(interactive) | |
(list-buffers-with-mode 'erc-mode)) | |
(defun term-buffers () | |
(interactive) | |
(list-buffers-with-mode 'term-mode)) | |
(defun list-buffers-with-mode (mode) | |
(interactive "SBuffer Mode: ") | |
(progn | |
(ibuffer-bs-show) | |
(ibuffer-filter-disable) | |
(ibuffer-filter-by-used-mode mode))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment