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
;; from https://gist.github.com/2250340 | |
(defun frame-bufs-switch-buffer () | |
"Switch buffer, within buffers associated with current frame (`frame-bufs-buffer-list')" | |
(interactive) | |
(if (and (fboundp 'frame-bufs-mode) | |
frame-bufs-mode) | |
(let* ( (buffers (mapcar 'buffer-name (frame-bufs-buffer-list (selected-frame)))) | |
(buffers-rotated (append (cdr buffers) (cons (car buffers) nil))) | |
(target (ido-completing-read "Buffer: " buffers-rotated)) ) | |
(switch-to-buffer target)) |