Merge pull request #303 from lukerandall/add-switch-to-previous-buffer

Add prelude-last-buffer
This commit is contained in:
Bozhidar Batsov 2013-04-24 01:34:04 -07:00
commit 7eeea58c22
2 changed files with 7 additions and 0 deletions

View file

@ -311,6 +311,12 @@ buffer is not visiting a file."
(set-window-start w2 s1)))
(other-window 1))
(defun prelude-switch-to-previous-buffer ()
"Switch to previously open buffer.
Repeated invocations toggle between the two most recently open buffers."
(interactive)
(switch-to-buffer (other-buffer (current-buffer) 1)))
(defun prelude-kill-other-buffers ()
"Kill all buffers but the current one.
Doesn't mess with special buffers."

View file

@ -115,6 +115,7 @@
(require 'key-chord)
(key-chord-define-global "jj" 'ace-jump-mode)
(key-chord-define-global "JJ" 'prelude-switch-to-previous-buffer)
(key-chord-mode +1)