Skip to content

Instantly share code, notes, and snippets.

@wasamasa
Last active February 17, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wasamasa/c4a5ea6384ce4021e953 to your computer and use it in GitHub Desktop.
Save wasamasa/c4a5ea6384ce4021e953 to your computer and use it in GitHub Desktop.
Modeline scroller (suggested by @josteink on #emacs)
(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