Created
July 22, 2014 17:07
-
-
Save mkit0031/41f109e40adbb8a1afd0 to your computer and use it in GitHub Desktop.
C-x b で存在しないバッファを指定した時に新規バッファで開くようにする ref: http://qiita.com/mkit0031/items/b8b9fcab7539f09fa45a
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
;; switch-to-buffer で 存在しないバッファ名を指定した時に新規バッファとして開けるようにする。 | |
(defun switch-to-buffer-extension (prompt) | |
(interactive | |
(list (read-buffer "Switch to buffer: " (other-buffer (current-buffer))))) | |
(switch-to-buffer prompt)) | |
(global-set-key "\C-xb" 'switch-to-buffer-extension) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment