Add prelude-switch-to-previous-buffer
This commit is contained in:
parent
557dd31b84
commit
d392932a4a
1 changed files with 6 additions and 0 deletions
|
@ -311,6 +311,12 @@ buffer is not visiting a file."
|
||||||
(set-window-start w2 s1)))
|
(set-window-start w2 s1)))
|
||||||
(other-window 1))
|
(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 ()
|
(defun prelude-kill-other-buffers ()
|
||||||
"Kill all buffers but the current one.
|
"Kill all buffers but the current one.
|
||||||
Doesn't mess with special buffers."
|
Doesn't mess with special buffers."
|
||||||
|
|
Loading…
Reference in a new issue