WARNING, MIND DUMBING CONTENT INSIDE.
“Nyan-mode. It’s things like this that make me proud to be an emacs user.” - mitchellh
Nyanmacs is expanding!! Read the story so far! :).
Nyan Mode is an analog indicator of your position in the buffer. The Cat should go from left to right in your mode-line, as you move your point from 0% to 100%.
- Mind dumbing content included,
- Experimental animation (M-x nyan-start-animation, M-x nyan-stop-animation),
- Wavy rainbow (M-x set-variable <ret> nyan-wavy-trail <ret> t),
- Music, mplayer is needed (M-x nyan-start-music, M-x nyan-stop-music),
- Customizable properties.
For those who were asking, or are planning to, Amit Patel shared some tips on how to make nyan-mode work with custom modeline.
He basically changed the mode-line-format to include:
(:eval (list (nyan-create)))
Nyan Mode apparently breaks it. I might get around to fixing that eventually. If you know a way to do it, don’t hesitate to contribute :).
It’s my second attempt to write a minor mode in Emacs, so there will definiely be some bugs.
This version uses XPM images, which should be supported by default by most Emacs 23 installations, Windows included. In case it doesn’t work, try switching to master-png branch. This branch, however, may have it’s own issues:
There was a problem with displaying PNG images, which require libpng to be available for Emacs. The lib is sometimes missing (e.g. some Windows installation). To make it work on Windows, one needs to download a proper DLL and put it into emacs bin/ folder. To see which DLL is needed, do: M-x describe-variable <ret> image-library-alist <ret>.
Customizing nyan-animate-nyancat is broken; don’t do it.
Code and idea inspired by sml-modeline.el, written by Lennart Borgman. See: http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head%3A/util/sml-modeline.el
For animated Nyan Cat, I used frames by DryBowser455.
For many years only the One True Editor was blessed with the presence of the Nyan Cat. Since its inception, however, daring souls have brought Nyanness to the lands of Lesser Editors.
Here are the examples I’ve tracked down so far:
- Vim - nefo-mi’s nyan-modoki.vim (text-only, it seems)
- Vim - edvb54’s catium.vim (also text, apparently)
- Sublime Text - wiggin15’s SublimeNyan
If you’ve seen others in the wild, please submit.
Check out Aaron Miller’s weatherline.el, partially inspired by Nyan Mode.
Nyanyanyanyanyanyanya! ♬ ♫ ♪ ♩