I find myself switching between buffers constantly to double check activity in other buffers. Is it possible for windows to display different buffers after x amount of time? In other words can I get "billboard" like behaviour?
I implemented Drews comment. (Improvements are welcome)
Here are 2 functions. One, which starts cycling buffers in current selected window
my-cycle-buffers. And one, which stops cycling
You can both bind to a hotkey if you want.
(defun my-cycle-buffers (seconds-delay) (interactive "p") (setq my-window (selected-window) my-current-pos 0) (defvar my-buffer-list '("*scratch*" "*Messages*" "*blubb*")) (defun my-cycle-buffers-call () (with-selected-window my-window (switch-to-buffer (nth my-current-pos my-buffer-list) t t) (setq my-current-pos (mod (1+ my-current-pos) (length my-buffer-list))))) (setq my-cycle-buffers-timer-obj (run-at-time "0 sec" seconds-delay 'my-cycle-buffers-call))) (defun my-cycle-buffers-kill () (interactive) (cancel-timer my-cycle-buffers-timer-obj) (message "cycling of buffers stopped"))
- before start cycling, set variable
my-buffer-listto a list of strings with buffer names you want to see.
- select a window which should cycle through buffers by putting point in it.
- start function
my-cycle-bufferswith a prefix, to set time of how long a buffer should be shown.
C-5 M-x my-cycle-buffersswitches every 5 seconds)
- to stop the spook, do