spacemacs/layers/+themes/colors/local/nyan-mode/README.org

74 lines
2.9 KiB
Org Mode
Raw Normal View History

2018-09-19 03:54:47 +00:00
#+TITLE: nyan-mode
2017-05-22 15:11:47 +00:00
2019-05-05 17:26:40 +00:00
#+TAGS: layer|uncategorized
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
- [[#description][Description]]
- [[#features][Features:]]
- [[#fork-modifications][Fork modifications]]
- [[#introduction][Introduction]]
2017-05-22 15:11:47 +00:00
- [[#using-nyan-mode-with-custom-modeline][Using Nyan Mode with custom modeline]]
- [[#known-issues][Known issues]]
- [[#credits][Credits]]
* Description
Nyan Mode - Turn your Emacs into Nyanmacs! :)
The 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%.
** Features:
2018-09-19 03:54:47 +00:00
- 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.
2017-05-22 15:11:47 +00:00
2019-04-21 19:00:24 +00:00
* Fork modifications
2017-05-22 15:11:47 +00:00
- the starting nyan cat image has no rainbow behind it,
- the starting rainbow image has zigzags,
- the animation loop is not endless and occurs only when nyan cat moves.
2019-04-21 19:00:24 +00:00
* Introduction
2018-09-19 03:54:47 +00:00
*WARNING, MIND DUMBING CONTENT INSIDE.*
2017-05-22 15:11:47 +00:00
"Nyan-mode. It's things like this that make me proud to be an emacs user." - [[http://twitter.com/#!/mitchellh/status/104931263479156736][mitchellh]]
2017-05-22 15:11:47 +00:00
2019-05-20 10:52:24 +00:00
Nyanmacs is expanding!! [[http://jacek.zlydach.pl/blog/2011-08-25-introducing-nyan-mode-el-turn-your-emacs-into-nyanmacs.html][Read the story so far]]! :).
2017-05-22 15:11:47 +00:00
** Using Nyan Mode with custom modeline
2019-05-20 10:52:24 +00:00
For those who were asking, or are planning to, [[http://amitp.blogspot.com/2011/08/emacs-custom-mode-line.html][Amit Patel shared]]
2017-05-22 15:11:47 +00:00
some tips on how to make nyan-mode work with custom modeline.
He basically changed the mode-line-format to include:
2018-07-10 10:57:25 +00:00
2018-09-19 03:54:47 +00:00
#+BEGIN_SRC emacs-lisp
2017-05-22 15:11:47 +00:00
(:eval (list (nyan-create)))
2018-09-19 03:54:47 +00:00
#+END_SRC
2017-05-22 15:11:47 +00:00
** Known issues
It's my second attempt to write a minor mode in Emacs, so there will
2017-05-22 15:11:47 +00:00
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
2017-05-22 15:11:47 +00:00
work, try switching to master-png branch. This branch, however, may
have it's own issues:
2017-05-22 15:11:47 +00:00
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.
2017-05-22 15:11:47 +00:00
** Credits
Code and idea inspired by sml-modeline.el, written by Lennart Borgman.
2018-09-19 03:54:47 +00:00
See: [[http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head%3A/util/sml-modeline.el]]
2017-05-22 15:11:47 +00:00
For animated Nyan Cat, I used frames [[http://media.photobucket.com/image/nyan%20cat%20sprites/DryBowser455/th_NyanCatSprite.png?t=1304659408][by DryBowser455]].
Nyanyanyanyanyanyanya!