Created
November 5, 2009 15:05
-
-
Save yosshi/227097 to your computer and use it in GitHub Desktop.
This file contains 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
;;バッファ切り替え(C-x b) | |
(iswitchb-mode t) | |
(iswitchb-default-keybindings) | |
(add-hook 'iswitchb-define-mode-map-hook | |
'iswitchb-my-keys) | |
(defun iswitchb-my-keys () | |
"Add my keybindings for iswitchb." | |
(define-key iswitchb-mode-map [right] 'iswitchb-next-match) | |
(define-key iswitchb-mode-map [left] 'iswitchb-prev-match) | |
(define-key iswitchb-mode-map "\C-f" 'iswitchb-next-match) | |
(define-key iswitchb-mode-map " " 'iswitchb-next-match) | |
(define-key iswitchb-mode-map "\t" 'iswitchb-next-match) | |
(define-key iswitchb-mode-map "\C-b" 'iswitchb-prev-match) | |
) | |
(defadvice iswitchb-exhibit | |
(after | |
iswitchb-exhibit-with-display-buffer | |
activate) | |
"選択している buffer を window に表示してみる。" | |
(when (and | |
(eq iswitchb-method iswitchb-default-method) | |
iswitchb-matches) | |
(select-window | |
(get-buffer-window (cadr (buffer-list)))) | |
(let ((iswitchb-method 'samewindow)) | |
(iswitchb-visit-buffer | |
(get-buffer (car iswitchb-matches)))) | |
(select-window (minibuffer-window)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment