Last active
February 17, 2016 13:45
-
-
Save wasamasa/c4a5ea6384ce4021e953 to your computer and use it in GitHub Desktop.
Modeline scroller (suggested by @josteink on #emacs)
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
(defun rotate-modeline () | |
(interactive) | |
(let ((original-mode-line-format mode-line-format) | |
(mode-line (format-mode-line mode-line-format)) | |
(interval 0.1)) | |
(unwind-protect | |
(while (not (input-pending-p)) | |
(setq mode-line (concat (substring mode-line 1) | |
(substring mode-line 0 1)) | |
mode-line-format mode-line) | |
(force-mode-line-update) | |
(sit-for interval)) | |
(setq mode-line-format original-mode-line-format) | |
(force-mode-line-update)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment