Commit 857b5fbf authored by syl20bnr's avatar syl20bnr
Browse files

Merge branch 'develop' (0.60.0)

parents bec4b4af 368b18f8
......@@ -25,6 +25,7 @@
- [Install](#install)
- [Update](#update)
- [Update notification](#update-notification)
- [Rollback](#rollback)
- [Configuration](#configuration)
- [Configuration layers](#configuration-layers)
- [Dotfile (.spacemacs)](#dotfile-spacemacs)
......@@ -178,13 +179,8 @@ See the [troubleshooting][troubleshoot] guide if you have any issues.
Spacemacs currently requires manual updates using the following procedure:
1. Update Emacs packages.
1. Open the package list using `<SPC> a P` or `M-x paradox-list-packages`
2. Mark all packages for updating by pressing `U`, and
3. install them with `x`.
[See the documentation][using_package_buf] for more information about how to use
the package list.
1. Update Emacs packages by clicking (press `RET`) on the `[Update]` link of
the starting page
2. Close Emacs and update the git repository:
......@@ -209,6 +205,18 @@ version of `Spacemacs` is available.
**Note:**
Update of `Spacemacs` by clicking on the indicator will be implemented _soon_.
## Rollback
You can rollback ELPA packages to a previous version if anything went wrong
during an update.
To rollback to a previous state click (press `RET`) on the `[Rollback]`
link of the startup page and choose a rollback slot.
Rollback slot names are dates with the following format `YYYY-MM-DD_HH.MM.SS`.
The date corresponds to the date of an update. The most recent slots are
listed first.
# Configuration
`Spacemacs` divides its configuration into self-contained units called
......
......@@ -9,6 +9,7 @@
- [Description](#description)
- [Install](#install)
- [Enable rainbow-identifiers](#enable-rainbow-identifiers)
- [Enable Nyan cat](#enable-nyan-cat)
- [Key bindings](#key-bindings)
- [Rainbow Identifiers](#rainbow-identifiers)
- [Rainbow Mode](#rainbow-mode)
......@@ -20,6 +21,7 @@
This layer colors your life with:
- [rainbow identifiers][]
- [rainbow mode][]
- [nyan mode][]
[rainbow identifiers][] mode will colorize each variables and functions with an
almost unique color. The keywords and the declaration of function colors are
......@@ -28,6 +30,8 @@ disabled in order to make the colorized variables and functions stand out.
[rainbow mode][] displays strings representing colors with the color they
represent as background.
[nyan mode][] display a Nyan cat progress bar in the mode-line.
## Install
To use this contribution add it to your `~/.spacemacs`
......@@ -45,8 +49,30 @@ To enable the package `rainbow-identifiers` set the variable
```elisp
(setq-default dotspacemacs-configuration-layers '(
(colors :variables
colors-enable-rainbow-identifiers t))
(colors :variables colors-enable-rainbow-identifiers t))
"List of contribution to load."
)
```
### Enable Nyan cat
To enable the package `nyan-mode` set the variable
`colors-enable-nyan-cat-progress-bar` to `t`:
```elisp
(setq-default dotspacemacs-configuration-layers '(
(colors :variables colors-enable-nyan-cat-progress-bar t))
"List of contribution to load."
)
```
It may be handy to enable it only in a GUI, you can do it by using
a quasi-quoted list:
```elisp
(setq-default dotspacemacs-configuration-layers
`((colors :variables
colors-enable-nyan-cat-progress-bar ,(display-graphic-p)))
"List of contribution to load."
)
```
......@@ -85,6 +111,12 @@ Any other key | leave the change mini-mode
<SPC> t C c
### Nyan Mode
`nyan-mode` mode can be toggled on and off with:
<SPC> t m n
Note that the toggle is local to the current buffer.
[rainbow identifiers]: https://github.com/Fanael/rainbow-identifiers
......
......@@ -17,7 +17,10 @@
;; Variables
(defvar colors-enable-rainbow-identifiers nil
"If non nil the `rainbow-identifers' package is enabled.")
"if non nil the `rainbow-identifers' package is enabled.")
(defvar colors-enable-nyan-cat-progress-bar nil
"if non nil all nyan cat packges are enabled (for now only `nyan-mode').")
;; Command prefixes
......
(defvar colors-post-extensions '(nyan-mode))
(defun colors/init-nyan-mode ()
(use-package nyan-mode
:if colors-enable-nyan-cat-progress-bar
:init
(progn
(setq nyan-wavy-trail t)
(setq nyan-animate-nyancat t)
(nyan-mode)
(spacemacs|add-toggle nyan-cat-progress-bar
:status nyan-mode
:on (nyan-mode)
:off (nyan-mode -1)
:documentation "Show a nyan cat progress bar in the mode-line."
:evil-leader "tmn")
(defun spacemacs/powerline-nyan-cat ()
"Construct a powerline segment for nyan cat."
(let* ((active (powerline-selected-window-active))
(l (1+ (truncate (powerline-width lhs))))
(r (1+ (truncate (powerline-width rhs))))
(face1 (if active 'powerline-active1 'powerline-inactive1))
(face2 (if active 'powerline-active2 'powerline-inactive2))
(separator-left
(intern (format "powerline-%s-%s"
powerline-default-separator
(car powerline-default-separator-dir))))
(separator-right
(intern (format "powerline-%s-%s"
powerline-default-separator
(cdr powerline-default-separator-dir)))))
(setq nyan-bar-length (min 32 (/ (- (window-total-width) l r) 2)))
(list
(funcall separator-right face2 face1)
(powerline-raw (nyan-create) face1)
(funcall separator-left face1 face2)))))))
* Nyan Mode - Turn your Emacs into Nyanmacs! :)
** Fork modifications
- 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.
** Introduction
*WARNING, MIND DUMBING CONTENT INSIDE.*
"Nyan-mode. It's things like this that make me proud to be an emacs user." - [[http://twitter.com/#!/mitchellh/status/104931263479156736][mitchellh]]
Nyanmacs is expanding!! [[http://temporal.pr0.pl/devblog/2011/08/25/introducing-nyan-mode-el-turn-your-emacs-into-nyanmacs/][Read the story so far]]! :).
[[file:screenshot.png]]
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%.
** Features
- 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.
** Using Nyan Mode with custom modeline
For those who were asking, or are planning to, [[http://friendfeed.com/amitp/b4097da0/nyan-mode-turn-your-emacs-into-nyanmacs][Amit Patel shared]]
some tips on how to make nyan-mode work with custom modeline.
He basically changed the mode-line-format to include:
#+begin_src emacs-lisp
(:eval (list (nyan-create)))
#+end_src
** Known issues
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.
** Credits
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 [[http://media.photobucket.com/image/nyan%20cat%20sprites/DryBowser455/th_NyanCatSprite.png?t=1304659408][by DryBowser455]].
Nyanyanyanyanyanyanya!
/* XPM */
static char *nyan_frame_1[] = {
/* columns rows colors chars-per-pixel */
"25 15 149 2 ",
" c black",
". c #070B0F",
"X c #0C0C0C",
"o c #041C0C",
"O c #000810",
"+ c #070917",
"@ c #0F1011",
"# c #02191F",
"$ c #111111",
"% c #161616",
"& c #082903",
"* c #142700",
"= c #083919",
"- c #292B00",
"; c #3C3400",
": c #120B2D",
"> c #001020",
", c #3F1E31",
"< c #172635",
"1 c #222222",
"2 c gray15",
"3 c #2B2525",
"4 c #2A2A2A",
"5 c gray18",
"6 c #3E2525",
"7 c #2C2F32",
"8 c gray22",
"9 c #3A3C3E",
"0 c gray24",
"q c #490C00",
"w c #7C0B10",
"e c #4C2400",
"r c #4C3100",
"t c #483F00",
"y c #403326",
"u c #4B3C2D",
"i c #423B34",
"p c #3D4100",
"a c #615600",
"s c #09264A",
"d c #1D2877",
"f c #322E75",
"g c #522244",
"h c #434343",
"j c #464646",
"k c #4C4646",
"l c gray29",
"z c gray30",
"x c #514C51",
"c c gray34",
"v c #54575A",
"b c #5D5D5D",
"n c #745D46",
"m c #775E5E",
"M c #614C61",
"N c #6D4C6D",
"B c #625962",
"V c gray38",
"C c #646464",
"Z c #686868",
"A c #7B6C6C",
"S c gray45",
"D c #767676",
"F c #7B7B7B",
"G c gray50",
"H c #BF1119",
"J c #F52A02",
"K c #FC7800",
"L c #947256",
"P c #26B210",
"I c #438500",
"U c #2CCB13",
"Y c #20D15C",
"T c #889000",
"R c #C4AC00",
"E c #FBA500",
"W c #F0D300",
"Q c #BF9973",
"! c #202C81",
"~ c #263498",
"^ c #432AAB",
"/ c #5536D9",
"( c #1E7FF7",
") c #4D43E9",
"_ c #5247F7",
"` c #885788",
"' c #A261A2",
"] c #AA66AA",
"[ c #AE68AE",
"{ c #FF5FC5",
"} c #C576C5",
"| c #D17DD1",
" . c #FF66CC",
".. c #F069C9",
"X. c #FF68CE",
"o. c #E073CD",
"O. c #FF6BD1",
"+. c #FF72D8",
"@. c #FF77DD",
"#. c #FF7CE2",
"$. c #0A819C",
"%. c #0EA7CB",
"&. c #1E80F7",
"*. c #868686",
"=. c #888888",
"-. c gray56",
";. c gray59",
":. c gray60",
">. c #A68F8F",
",. c #A09999",
"<. c #A89999",
"1. c #B09999",
"2. c #B59999",
"3. c #A0A0A0",
"4. c gray65",
"5. c #D79999",
"6. c #F69999",
"7. c #FF9999",
"8. c #D8AD82",
"9. c #F0BB99",
"0. c #F0B6A2",
"q. c #FFBBBB",
"w. c #FFBCB9",
"e. c #F0C090",
"r. c #FFCC99",
"t. c #FFC7A2",
"y. c #FFC7A4",
"u. c #D882D8",
"i. c #FF95D5",
"p. c #FFB3CC",
"a. c #E086E0",
"s. c #FF80E6",
"d. c #FF85EB",
"f. c #FF86EC",
"g. c #FF8AF0",
"h. c #FF8DF3",
"j. c #FF8FF5",
"k. c #F794F7",
"l. c #FF90F6",
"z. c #FF9DF7",
"x. c #FF92F8",
"c. c #FF94FA",
"v. c #FF97FD",
"b. c #FF99FF",
"n. c #FFA6E6",
"m. c #FFA8E0",
"M. c #FFA8E2",
"N. c gray81",
"B. c None",
/* pixels */
"g g g g g g , y y y y y y y y y y y y 7 B.B.B.B.B.",
"H H H H H w L r.w.p.p.p.p.p.p.p.p.p.y.8.8 B.B.B.B.",
"J J J J J q e.w.b.b.b.b.{ b. .x.b.b.m.r.n B.B.B.B.",
"K K K K K e 0.b. .x.b.b.b.b.u.} x.h.x.m.n B.B.B.B.",
"E E E E E r 0.b.b.b.b.b.b.| M z ] #.x.m.n B.l B.B.",
"R ; ; a W t 0.b.b.b.b. .x.' b ;.B [ b.m.n V :.l B.",
"T 8 -.1 p - 0.b.b.f.b.b.b.' b :.:.b 1 4 V :.:.l B.",
"I * 8 *.4 0.b.b.+.b.b...N F :.:.:.:.:.:.:.:.S B.",
"U P & 8 =.1 0.#.s.b.b.b.o.8 :.3.4.Z :.:.:.N.j :.4 ",
"Y Y Y = o 0.b.b.b.h.x.a.8 <.>.2 V :.D Z 8 k 2.3 ",
"%.%.%.%.$.# 9.m.@.x.f.f.a.8 5.6.*.F :.V :.b 2.7.6 ",
"&.&.&.&.&.s 9.y.i.b.b.b.k.` A 1.V % 1 X 4 X ,.m B.",
"_ _ _ ) f 1 i Q Q Q Q Q Q Q u V S S S S S S v B.B.",
"/ / / ^ l :.j : O l 4 > B.B.B.. l 1 B.% l % B.B.B.",
"~ ~ ~ d % 1 O ! > 1 < B.B.B.B.B.2 % B.B.1 B.B.B.B."
};
/* XPM */
static char *nyan_frame_2[] = {
/* columns rows colors chars-per-pixel */
"25 15 136 2 ",
" c #00070E",
". c #07090A",
"X c #070B0F",
"o c #0C0C0C",
"O c #000A14",
"+ c #100D1C",
"@ c #0F1011",
"# c #111111",
"$ c gray9",
"% c #152900",
"& c #083417",
"* c #180F3E",
"= c #032D37",
"- c #202020",
"; c #252525",
": c #2B2525",
"> c #2A2A2A",
", c #3E2525",
"< c #3F3127",
"1 c #3C3229",
"2 c gray20",
"3 c gray22",
"4 c #3F3F3F",
"5 c #431C38",
"6 c #403326",
"7 c #4B3C2D",
"8 c #254900",
"9 c #227C13",
"0 c #626800",
"q c #6C720A",
"w c #6F7509",
"e c #764939",
"r c #1E2974",
"t c #322E75",
"y c #522244",
"u c #075568",
"i c #414141",
"p c #464646",
"a c #4C4646",
"s c gray29",
"d c gray30",
"f c #584E44",
"g c #514C51",
"h c gray34",
"j c #54575A",
"k c #5D5D5D",
"l c #775E5E",
"z c #5B5E61",
"x c #614C61",
"c c #6D4C6D",
"v c #625962",
"b c gray38",
"n c #646464",
"m c #686868",
"M c #7B6C6C",
"N c #6F706F",
"B c gray45",
"V c #767676",
"C c #7B7B7B",
"Z c gray49",
"A c #851601",
"S c #930D13",
"D c #BF1119",
"F c #F52A02",
"G c #894100",
"H c #885900",
"J c #827300",
"K c #FC7800",
"L c #14843A",
"P c #20D15C",
"I c #B2BD00",
"U c #FBA500",
"Y c #F0D300",
"T c #B28E6B",
"R c #B6926E",
"E c #BF9973",
"W c #212E87",
"Q c #263498",
"! c #432AAB",
"~ c #104586",
"^ c #5536D9",
"/ c #1E7FF7",
"( c #4D43E9",
") c #5247F7",
"_ c #885788",
"` c #AA5599",
"' c #A261A2",
"] c #AE68AE",
"[ c #C576C5",
"{ c #D17DD1",
"} c #FF68CE",
"| c #FF6DD3",
" . c #FF77DD",
".. c #FF79DF",
"X. c #FF7BE1",
"o. c #FF7DE3",
"O. c #0EA7CB",
"+. c #1E80F7",
"@. c gray59",
"#. c gray60",
"$. c #A68F8F",
"%. c #A09999",
"&. c #A89999",
"*. c #B09999",
"=. c #B59999",
"-. c #A0A0A0",
";. c gray65",
":. c #D79999",
">. c #F69999",
",. c #FF9999",
"<. c #F7C694",
"1. c #FFCA9E",
"2. c #FFC5A7",
"3. c #FFC1AF",
"4. c #D882D8",
"5. c #E083DD",
"6. c #FFA4C8",
"7. c #FFB3CC",
"8. c #FFAFD2",
"9. c #E086E0",
"0. c #FF80E6",
"q. c #FF83E9",
"w. c #F08AE9",
"e. c #FF8EEB",
"r. c #FF88EE",
"t. c #FF8AF0",
"y. c #FF8EF4",
"u. c #F794F7",
"i. c #FF90F6",
"p. c #FF94FA",
"a. c #FF97FD",
"s. c #FF9CF9",
"d. c #FF99FF",
"f. c #FFA0F0",
"g. c gray81",
"h. c None",
/* pixels */
"y y y y y 5 < < < < 6 6 6 6 6 6 < < < h.h.h.h.h.h.",
"D D D D S e <.3.7.7.7.7.7.7.7.7.7.3.<.f h.h.h.h.h.",
"F F F F A T 2.f.s.d.d.} y.X.X.d.s.f.2.T h.h.h.h.h.",
"K K K K G T s...0.s.d.d.s.d.4.[ i.y.s.T h.h.h.h.h.",
"U U U U H T s.d.d.d.d.d.s.{ x g ` 0.s.T h.h.d h.h.",
"Y Y Y Y J T s.d.d.d.X.X.d.' k @.v ] s.T z #.d h.",
"w ; w I 0 T s.d.0.s.d.d.d.' k #.#.k ; ; b #.#.d h.",
"; #.> 8 % T s.d...d.d...w.c C #.#.#.#.#.#.#.#.B h.",
"9 k C B 4 T y.| d.d.d.0.9.3 #.-.;.m #.#.#.g.a #.; ",
"P L & N 4 T s.s.d.d.r.d.9.3 &.$.; m #.C m 3 a *.: ",
"O.O.O.u = T 8.0.0.y.X.d.9.3 :.>.Z Z #.b #.z *.,., ",
"+.+./ / ~ T 1.6.i.d.s.d.u._ M *.b $ ; o ; o %.l h.",
") ) ) ( t ; R E E E E E E E 7 b B B B B B B j h.h.",
"^ ^ ^ ! s #.+ * 2 i X h.h.h.h.X d ; h.# d @ h.h.h.",
"Q Q Q r @ ; r W h.- h.h.h.h.h.h.; # h.h.; . h.h.h."
};
/* XPM */
static char *nyan_frame_3[] = {
/* columns rows colors chars-per-pixel */
"25 15 138 2 ",
" c black",
". c #00070F",
"X c #0E0E0E",
"o c #0B1700",
"O c #061B02",
"+ c #030C16",
"@ c #02191F",
"# c #151515",
"$ c #1B1B1B",
"% c gray11",
"& c #0B3204",
"* c #363900",
"= c #27221C",
"- c #0B0F2D",
"; c #001122",
": c #3F1E31",
"> c #03252E",
", c #1E262E",
"< c gray15",
"1 c #2A2A2A",
"2 c #2C2C2C",
"3 c #2C2F32",
"4 c gray22",
"5 c #3A3C3E",
"6 c #3C3C3C",
"7 c #490C00",
"8 c #7C0B10",
"9 c #4C2400",
"0 c #4C3100",
"q c #483F00",
"w c #403326",
"e c #145C08",
"r c #3C7501",
"t c #191041",
"y c #18154A",
"u c #052749",
"i c #002E5D",
"p c #212646",
"a c #373E44",
"s c #522244",
"d c #643C64",
"f c #285059",
"g c #414141",
"h c #484848",
"j c gray30",
"k c #5C4242",
"l c #554755",
"z c #544C54",
"x c #5E4D5E",
"c c #5A5A5A",
"v c #5D5D5D",
"b c #745D46",
"n c #634463",
"m c #614C61",
"M c gray38",
"N c #6F6161",
"B c #6D6D6D",
"V c gray45",
"C c #777777",
"Z c gray48",
"A c gray49",
"S c #BF1119",
"D c #F52A02",
"F c #FC7800",
"G c #947256",
"H c #847373",
"J c #4D9801",
"K c #2CCB13",
"L c #189E45",
"P c #B4BF00",
"I c #FBA500",
"U c #F0D300",
"Y c #BF9973",
"T c #263498",
"R c #165FB9",
"E c #5536D9",
"W c #196ED5",
"Q c #1A70D8",
"! c #1E7FF7",
"~ c #5247F7",
"^ c #A261A2",
"/ c #B26BB2",
"( c #C95BAC",
") c #FF5FC5",
"_ c #C979C9",
"` c #D17DD1",
"' c #FF66CC",
"] c #FF68CE",
"[ c #FF6BD1",
"{ c #FF72D8",
"} c #FF77DD",
"| c #0C92B2",
" . c gray51",
".. c #848484",
"X. c #8B8B8B",
"o. c #8D8D8D",
"O. c #9D8888",
"+. c gray57",
"@. c #979797",
"#. c gray60",
"$. c #A69999",
"%. c #AA9999",
"&. c #AF9999",
"*. c #B39999",
"=. c gray70",
"-. c #CE9999",
";. c #DD9999",
":. c #F09999",
">. c #FF9999",
",. c #D8AD82",
"<. c #F0BB99",
"1. c #F0B6A2",
"2. c #FFBBBB",
"3. c #FFBCB9",
"4. c #F0C090",
"5. c #FFCC99",
"6. c #FFC7A2",
"7. c #FFC7A4",
"8. c #D580D5",
"9. c #DC84DC",
"0. c #FF95D5",
"q. c #FFB3CC",
"w. c #E88BE8",
"e. c #FF80E6",
"r. c #FF85EB",
"t. c #FF86EC",
"y. c #FF8AF0",
"u. c #FF8DF3",
"i. c #FF8FF5",
"p. c #FF90F6",
"a. c #FF9DF7",
"s. c #FF92F8",
"d. c #FF94FA",
"f. c #FF97FD",
"g. c #FF99FF",
"h. c #FFA6E6",
"j. c #FFA8E0",
"k. c None",
/* pixels */
"s s s s s s : w w w w w w w w w w w w 3 k.k.k.k.k.",
"S S S S S 8 G 5.3.q.q.q.q.q.q.q.q.q.7.,.4 k.k.k.k.",
"D D D D D 7 4.3.g.g.g.g.) g.' s.g.g.h.5.b k.k.k.k.",
"F F F F F 9 1.g.' s.g.g.g.g.g._ ` u.s.j.b k.k.k.k.",
"I I I I I 0 1.g.g.g.g.g.g.g./ z x ( s.j.b k.k.j k.",
"U U U U U q 1.g.g.g.g.' s.g.d .o.z 9.j.b + A #.< ",
"P P P P P * 1.g.g.t.g.g.g.g.d .#.#.4 < < .#.#.< ",
"J J J J r o 1.g.g.{ g.g.{ ` m X.#.#.#.#.#.#.#.#.M ",
"K K e & O 1.} e.g.g.g.e.^ v #.=.C .#.#.#.=.c @.",
"L # Z +.B , 1.g.g.g.s.s.g.^ v &.H < .#.c A < N *.",
"| f j 4 > @ <.j.} s.t.t.g.^ v :.;.B X. .C #.M -.>.",
"! Q R R W u <.7.0.g.g.g.g.w.n O.&.g % % # < 1 $.k ",
"~ ~ ~ ~ ~ y 4 Y Y Y Y Y Y Y Y = V V V V V V V a k.",
"E E E E E t Y , ; X j % k.k.k.k.; 1 j . k.4 4 k.k.",
"T T T T T - < p i k.< X k.k.k.k.k.k.1 k.k., % k.k."
};
/* XPM */
static char *nyan_frame_4[] = {
/* columns rows colors chars-per-pixel */
"25 15 136 2 ",
" c #00070E",
". c #07090A",
"X c #070B0F",
"o c #0C0C0C",
"O c #000A14",
"+ c #100D1C",
"@ c #0F1011",
"# c #111111",
"$ c gray9",
"% c #152900",
"& c #0B3204",
"* c #180F3E",
"= c #032D37",
"- c #192633",
"; c #202020",
": c gray15",
"> c #2B2525",
", c #2A2A2A",
"< c #3E2525",
"1 c #3F3127",
"2 c #3C3229",
"3 c gray20",
"4 c gray22",
"5 c #3F3F3F",
"6 c #431C38",
"7 c #403326",
"8 c #4B3C2D",
"9 c #284E00",
"0 c #1B7F3D",
"q c #626800",
"w c #764939",
"e c #1E2974",
"r c #322E75",
"t c #522244",
"y c #065062",
"u c #414141",
"i c #464646",
"p c #4C4646",
"a c gray29",
"s c gray30",
"d c #584E44",
"f c #514C51",
"g c gray34",
"h c #54575A",
"j c #5D5D5D",
"k c #775E5E",
"l c #5B5E61",
"z c #614C61",
"x c #6D4C6D",
"c c #625962",
"v c gray38",
"b c #646464",
"n c #686868",
"m c #7B6C6C",
"M c #6F706F",
"N c gray45",
"B c #767676",
"V c #7B7B7B",
"C c gray49",
"Z c #851601",
"A c #930D13",
"S c #BF1119",
"D c #F52A02",
"F c #894100",
"G c #885900",
"H c #827300",
"J c #FC7800",
"K c #1B800C",
"L c #4D9801",
"P c #2CCB13",
"I c #B4BF00",
"U c #FBA500",
"Y c #F0D300",
"T c #B28E6B",
"R c #B6926E",
"E c #BF9973",
"W c #212E87",
"Q c #263498",
"! c #432AAB",
"~ c #104586",
"^ c #1A5091",
"/ c #1A5195",
"( c #5536D9",
") c #1D7EF5",
"_ c #4D43E9",
"` c #5247F7",
"' c #885788",
"] c #AA5599",
"[ c #A261A2",
"{ c #AE68AE",
"} c #C576C5",
"| c #D17DD1",
" . c #FF68CE",
".. c #FF6DD3",
"X. c #FF77DD",
"o. c #FF79DF",
"O. c #FF7BE1",
"+. c #FF7DE3",
"@. c gray59",
"#. c gray60",
"$. c #A68F8F",
"%. c #A09999",
"&. c #A89999",
"*. c #B09999",
"=. c #B59999",
"-. c #A0A0A0",
";. c gray65",
":. c #D79999",
">. c #F69999",
",. c #FF9999",
"<. c #F7C694",
"1. c #FFCA9E",
"2. c #FFC5A7",
"3. c #FFC1AF",
"4. c #D882D8",
"5. c #E083DD",
"6. c #FFA4C8",
"7. c #FFB3CC",
"8. c #FFAFD2",
"9. c #E086E0",
"0. c #FF80E6",
"q. c #FF83E9",
"w. c #F08AE9",
"e. c #FF8EEB",
"r. c #FF88EE",
"t. c #FF8AF0",
"y. c #FF8EF4",
"u. c #F794F7",
"i. c #FF90F6",
"p. c #FF94FA",
"a. c #FF97FD",
"s. c #FF9CF9",
"d. c #FF99FF",
"f. c #FFA0F0",
"g. c gray81",
"h. c None",
/* pixels */
"t t t t t 6 1 7 7 7 7 7 7 7 7 7 1 1 1 h.h.h.h.h.h.",
"S S S S A w <.3.7.7.7.7.7.7.7.7.7.3.<.d h.h.h.h.h.",
"D D D D Z T 2.f.d.d.d. .i.+.+.d.s.f.2.T h.h.h.h.h.",
"J J J J F T s.o.+.s.d.d.d.s.| } i.y.s.T h.h.h.h.h.",
"U U U U G T s.d.d.d.d.d.d.| z f ] 0.s.T h.h.s h.h.",
"Y Y Y Y H T s.d.d.d.+.+.d.[ j @.c { s.T l #.a h.",
"I I I I q T s.d.r.d.d.d.d.[ j #.#.j : : v #.#.s h.",
"L L L 9 % T s.s.o.d.d.o.w.x V #.#.#.#.#.#.#.#.N h.",
"P K & M 5 T e...d.d.d.r.5.4 #.-.-.v #.#.#.g.p #.: ",
"0 l C N 5 T s.d.d.y.r.d.5.4 &.$.: j #.V v 5 p *.> ",
": #.: y = T 8.r.r.y.+.d.9.4 :.>.V @.#.v #.j *.,.< ",
"/ : ^ ) ~ T 1.6.y.d.d.d.u.' m *.v $ : o : o %.k h.",
"` ` ` _ r : R E E E E E E E 8 v N N N N N N h h.h.",
"( ( ( ! i #.+ * 3 u X h.h.h.h.X s : h.# s # h.h.h.",
"Q Q Q e @ : e W - ; h.h.h.h.h.h.: # h.h.: . h.h.h."
};
/* XPM */
static char *nyan_frame_5[] = {
/* columns rows colors chars-per-pixel */
"25 15 136 2 ",
" c black",
". c #020F06",
"X c #070B0F",
"o c #08090C",
"O c #0C0C0C",
"+ c #1D1F00",
"@ c #020912",
"# c #000A14",
"$ c #131313",
"% c #161616",
"& c #191919",
"* c #251E17",
"= c #083417",
"- c #292B00",
"; c #3F1E31",
": c #04323D",
"> c #232323",
", c #222126",
"< c gray14",
"1 c gray15",
"2 c #2B2525",
"3 c #20262C",
"4 c #2A2A2A",
"5 c #3E2525",
"6 c #2C2F32",
"7 c gray20",
"8 c gray22",
"9 c #3A3C3E",
"0 c #490C00",
"q c #7C0B10",
"w c #4C2400",
"e c #4C3100",
"r c #483F00",
"t c #403326",
"y c #4B3C2D",
"u c #236119",
"i c #6F7509",
"p c #241856",
"a c #1F265A",
"s c #522244",
"d c #414141",
"f c #464646",
"g c #4C4646",
"h c #494949",
"j c gray31",
"k c #514C51",
"l c gray34",
"z c #54575A",
"x c #5D5D5D",
"c c #5F5F5F",
"v c #745D46",
"b c #614C61",
"n c #6D4C6D",
"m c gray38",
"M c #646464",
"N c gray40",
"B c #686868",
"V c #7B6C6C",
"C c #727272",
"Z c gray45",
"A c #7B7B7B",
"S c gray50",
"D c #BF1119",
"F c #F52A02",
"G c #FC7800",
"H c #947256",
"J c #20980E",
"K c #1AAF4D",
"L c #20D15C",
"P c #868F00",
"I c #FBA500",
"U c #F0D300",
"Y c #BF9973",
"T c #23308F",
"R c #263498",
"E c #39329C",
"W c #1354A2",
"Q c #5536D9",
"! c #5247F7",
"~ c #885788",
"^ c #A261A2",
"/ c #AA66AA",
"( c #AE68AE",
") c #FF5FC5",
"_ c #C576C5",
"` c #D17DD1",
"' c #FF66CC",
"] c #F069C9",
"[ c #FF68CE",
"{ c #E073CD",
"} c #FF6BD1",
"| c #FF72D8",
" . c #FF77DD",
".. c #FF79DF",
"X. c #0EA7CB",
"o. c #1E80F7",
"O. c gray59",
"+. c gray60",
"@. c #A68F8F",
"#. c #A89999",
"$. c #B09999",
"%. c #B59999",
"&. c #A0A0A0",
"*. c gray65",
"=. c #D79999",
"-. c #F69999",
";. c #FF9999",
":. c #D8AD82",
">. c #F0BB99",
",. c #F0B6A2",
"<. c #FFBBBB",
"1. c #FFBCB9",
"2. c #F0C090",
"3. c #FFCC99",
"4. c #FFC7A2",
"5. c #D882D8",
"6. c #FF95D5",
"7. c #FFB3CC",
"8. c #E086E0",
"9. c #FF80E6",
"0. c #FF85EB",
"q. c #FF86EC",
"w. c #FF8AF0",
"e. c #FF8DF3",
"r. c #FF8FF5",
"t. c #F794F7",
"y. c #FF90F6",
"u. c #FF9DF7",
"i. c #FF92F8",
"p. c #FF94FA",
"a. c #FF97FD",
"s. c #FF99FF",
"d. c #FFA6E6",
"f. c #FFA8E0",
"g. c gray81",
"h. c None",
/* pixels */
"s s s s s s ; t t t t t t t t t t t t 6 h.h.h.h.h.",
"D D D D D q H 3.1.7.7.7.7.7.7.7.7.7.4.:.9 h.h.h.h.",
"F F F F F 0 2.1.s.s.s.s.) s.' i.s.s.d.3.v h.h.h.h.",
"G G G G G w ,.s.' i.s.s.s.s.5._ u.e.p.f.v h.h.h.h.",
"I I I I I e ,.s.s.s.s.s.s.` b j / .i.f.v h.j h.h.",
"U U U U U r ,.s.s.s.s.' i.^ x O.x ( u.f.v x O.h h.",
"i 1 1 + P - ,.s.s.0.s.s.s.^ x +.+.l 2 2 m +.+.j h.",
"$ C +.j 4 ,.s.s.| s.s.] n A +.+.+.+.+.+.+.+.C h.",
"J u 1 1 h 1 ,. .9.s.s.s.{ 8 +.&.*.m +.+.+.g.d +.1 ",
"L L L K = . ,.s.s.s.e.i.8.8 #.@., x +.A N 9 g %.2 ",
"X.X.X.X.X.: >.f. .i.0.0.8.8 =.-.H O.+.m +.m %.;.5 ",
"o.o.o.o.W # 2.4.6.s.s.s.t.~ V $.m % 1 O 3 # +.V h.",
"! ! ! E 4 1 * Y Y Y Y Y Y Y y m C C C C C C z h.h.",
"Q Q Q 1 +.m p & j X h.h.h.h.# d 7 h.# j 1 h.h.h.h.",
"R R R o 1 a T a 1 h.h.h.h.h.h.3 & h.h.1 $ h.h.h.h."
};
/* XPM */
static char *nyan_frame_6[] = {
/* columns rows colors chars-per-pixel */
"25 15 144 2 ",
" c black",
". c #020F06",
"X c #070B0F",
"o c #08090C",
"O c #0C0C0C",
"+ c #020912",
"@ c #000A14",
"# c #111111",
"$ c #151515",
"% c #1D1711",
"& c #251E17",
"* c #083417",
"= c #212305",
"- c #292B00",
"; c #3C3400",
": c #3F1E31",
"> c #04323D",
", c #202020",
"< c #222126",
"1 c #252525",
"2 c #2A2A2A",
"3 c gray18",
"4 c #3E2525",
"5 c #2C2F32",
"6 c #342D34",
"7 c gray20",
"8 c gray22",
"9 c #3A3C3E",
"0 c #3F3F3F",
"q c #490C00",
"w c #7C0B10",
"e c #4C2400",
"r c #4C3100",
"t c #483F00",
"y c #403326",
"u c #402A38",
"i c #24451F",
"p c #394C25",
"a c #241856",
"s c #1F265A",
"d c #1E297A",
"f c #522244",
"g c #414141",
"h c #464646",
"j c gray29",
"k c gray31",
"l c #554755",
"z c #5E4D5E",
"x c #515151",
"c c #5C5650",
"v c #5A5A5A",
"b c #5D5D5D",
"n c #745D46",
"m c #634463",
"M c #6D4C6D",
"N c #656565",
"B c #6C6C6C",
"V c gray45",
"C c #767676",
"Z c #797979",
"A c #7C7C7C",
"S c #BF1119",
"D c #F52A02",
"F c #FC7800",
"G c #947256",
"H c #9A7B7B",
"J c #A57272",
"K c #26B210",
"L c #438500",
"P c #2CCB13",
"I c #1AAF4D",
"U c #20D15C",
"Y c #868F00",
"T c #988600",
"R c #889000",
"E c #FBA500",
"W c #EACE00",
"Q c #F0D300",
"! c #BF9973",
"~ c #263498",
"^ c #39329C",
"/ c #1354A2",
"( c #5536D9",
") c #1E7FF7",
"_ c #5247F7",
"` c #885788",
"' c #A261A2",
"] c #C95BAC",
"[ c #E060B9",
"{ c #FF5FC5",
"} c #FF66CC",
"| c #FF68CE",
" . c #E073CD",
".. c #FF6BD1",
"X. c #FF72D8",
"o. c #FF77DD",
"O. c #FF79DF",
"+. c #0EA7CB",
"@. c #1E80F7",
"#. c #848484",
"$. c #888888",
"%. c gray55",
"&. c #929292",
"*. c #979797",
"=. c gray60",
"-. c gray62",
";. c #A79999",
":. c #B59999",
">. c gray63",
",. c gray74",
"<. c #C79999",
"1. c #D79999",
"2. c #F69999",
"3. c #FF9999",
"4. c #D8AD82",
"5. c #F0BB99",
"6. c #F0B6A2",
"7. c #FFBBBB",
"8. c #FFBCB9",
"9. c #F0C090",
"0. c #FFCC99",
"q. c #FFC7A2",
"w. c #FFC7A4",
"e. c #D580D5",
"r. c #FF95D5",
"t. c #FFB3CC",
"y. c #E086E0",
"u. c #E88BE8",
"i. c #FF80E6",
"p. c #FF85EB",
"a. c #FF86EC",
"s. c #FF8DF3",
"d. c #FF8FF5",
"f. c #F090F0",
"g. c #F794F7",
"h. c #FF90F6",
"j. c #FF9DF7",
"k. c #FF92F8",
"l. c #FF94FA",
"z. c #FF97FD",
"x. c #FF99FF",
"c. c #FFA6E6",
"v. c #FFA8E2",
"b. c None",
/* pixels */
"f f f f f f : y y y y y y y y y y y y 5 b.b.b.b.b.",
"S S S S S w G 0.8.t.t.t.t.t.t.t.t.t.q.4.9 b.b.b.b.",
"D D D D D q 9.8.x.x.x.x.{ x.} k.l.x.c.0.n b.b.b.b.",
"F F F F F e 6.x.} k.x.x.x.u.m 6 e.s.l.v.n b., b.b.",
"E E E E E r 6.x.x.x.x.x.x.' b &.z ] k.c.n 6 =.j b.",
"Q T ; W Q t 6.x.x.x.x.} k.' b =.$.l 6 6 c &.=.j b.",
"R j =.= R - 6.x.x.a.x.x.g.` B =.=.=.=.=.;.>.*.b b.",
"L p #.j x $ 6.x.x.X.x.x.[ 8 =.-.-.A =.=.=.,.N =.3 ",
"P K i 0 =.3 6.o.i.x.x.x. .8 =.&.3 v *.C N k 3 *., ",
"U U U I * . 6.x.x.x.k.k.y.8 1.2.%.$.*.A =.A :.3.4 ",
"+.+.+.+.+.> 5.v.o.k.a.a.f.M H <.N 3 j $ k $ ;.J b.",
") @.) ) / @ 9.q.r.x.x.x.x.u.m #.#.C C C C V C b.b.",
"_ _ _ ^ b j & ! ! ! ! ! ! ! ! % O $ @ b.b.b.",
"( ( ( , =.B a , k X b.b.b.b.@ g 6 b.@ N h b.b.b.b.",
"~ ~ ~ X , s d # , b.b.b.b.b.b., b.b.b., $ b.b.b.b."
};
/* XPM */
static char *nyan[] = {
/* columns rows colors chars-per-pixel */
"25 15 136 2 ",
" c black",
". c #020F06",
"X c #070B0F",
"o c #08090C",
"O c #0C0C0C",
"+ c #1D1F00",
"@ c #020912",
"# c #000A14",
"$ c #131313",
"% c #161616",
"& c #191919",
"* c #251E17",
"= c #083417",
"- c #292B00",
"; c #3F1E31",
": c #04323D",
"> c #232323",
", c #222126",
"< c gray14",
"1 c gray15",
"2 c #2B2525",
"3 c #20262C",
"4 c #2A2A2A",
"5 c #3E2525",
"6 c #2C2F32",
"7 c gray20",
"8 c gray22",
"9 c #3A3C3E",
"0 c #490C00",
"q c #7C0B10",
"w c #4C2400",
"e c #4C3100",
"r c #483F00",
"t c #403326",
"y c #4B3C2D",
"u c #236119",
"i c #6F7509",
"p c #241856",
"a c #1F265A",
"s c #522244",
"d c #414141",
"f c #464646",
"g c #4C4646",
"h c #494949",
"j c gray31",
"k c #514C51",
"l c gray34",
"z c #54575A",
"x c #5D5D5D",
"c c #5F5F5F",
"v c #745D46",
"b c #614C61",
"n c #6D4C6D",
"m c gray38",
"M c #646464",
"N c gray40",
"B c #686868",
"V c #7B6C6C",
"C c #727272",
"Z c gray45",
"A c #7B7B7B",
"S c gray50",
"D c #BF1119",
"F c #F52A02",
"G c #FC7800",
"H c #947256",
"J c #20980E",
"K c #1AAF4D",
"L c #20D15C",
"P c #868F00",
"I c #FBA500",
"U c #F0D300",
"Y c #BF9973",
"T c #23308F",
"R c #263498",
"E c #39329C",
"W c #1354A2",
"Q c #5536D9",
"! c #5247F7",
"~ c #885788",
"^ c #A261A2",
"/ c #AA66AA",
"( c #AE68AE",
") c #FF5FC5",
"_ c #C576C5",
"` c #D17DD1",
"' c #FF66CC",
"] c #F069C9",
"[ c #FF68CE",
"{ c #E073CD",
"} c #FF6BD1",
"| c #FF72D8",
" . c #FF77DD",
".. c #FF79DF",
"X. c #0EA7CB",
"o. c #1E80F7",
"O. c gray59",
"+. c gray60",
"@. c #A68F8F",
"#. c #A89999",
"$. c #B09999",
"%. c #B59999",
"&. c #A0A0A0",
"*. c gray65",
"=. c #D79999",
"-. c #F69999",
";. c #FF9999",
":. c #D8AD82",
">. c #F0BB99",
",. c #F0B6A2",
"<. c #FFBBBB",
"1. c #FFBCB9",
"2. c #F0C090",
"3. c #FFCC99",
"4. c #FFC7A2",
"5. c #D882D8",
"6. c #FF95D5",
"7. c #FFB3CC",
"8. c #E086E0",
"9. c #FF80E6",
"0. c #FF85EB",
"q. c #FF86EC",
"w. c #FF8AF0",
"e. c #FF8DF3",
"r. c #FF8FF5",
"t. c #F794F7",
"y. c #FF90F6",
"u. c #FF9DF7",
"i. c #FF92F8",
"p. c #FF94FA",
"a. c #FF97FD",
"s. c #FF99FF",
"d. c #FFA6E6",
"f. c #FFA8E0",
"g. c gray81",
"h. c None",
/* pixels */
"h.h.h.h.h.h.; t t t t t t t t t t t t 6 h.h.h.h.h.",
"h.h.h.h.h.q H 3.1.7.7.7.7.7.7.7.7.7.4.:.9 h.h.h.h.",
"h.h.h.h.h.0 2.1.s.s.s.s.) s.' i.s.s.d.3.v h.h.h.h.",
"h.h.h.h.h.w ,.s.' i.s.s.s.s.5._ u.e.p.f.v h.h.h.h.",
"h.h.h.h.h.e ,.s.s.s.s.s.s.` b j / .i.f.v h.j h.h.",
"h.h.h.h.h.r ,.s.s.s.s.' i.^ x O.x / u.f.v x O.d h.",
"h.1 1 + h.- ,.s.s.0.s.s.s.^ x +.+.x 2 2 m +.+.j h.",
"$ C +.j 4 ,.s.s.| s.s.] n A +.+.+.+.+.+.+.+.C h.",
"h.u 1 1 h 1 ,. .9.s.s.s.{ 8 +.&.&.B +.+.+.g.g +.1 ",
"h.h.h.h.= . ,.s.s.s.e.i.8.8 #.@., m +.A N 9 g $.2 ",
"h.h.h.h.h.: >.f. .i.0.0.8.8 =.-.H O.+.m +.c $.;.5 ",
"h.h.h.h.W # 2.4.6.s.s.s.t.~ V $.m $ 1 O 3 # +.V h.",
"h.h.h.E 4 1 * Y Y Y Y Y Y Y y m C C C C C C z h.h.",
"h.h.h.1 +.m p & j X h.h.h.h.# d 7 h.h.j 1 h.h.h.h.",
"h.h.h.o 1 a T a 1 h.h.h.h.h.h.3 & h.h.1 $ h.h.h.h."
};
/* XPM */
static char *nyan[] = {
/* columns rows colors chars-per-pixel */
"25 15 136 2 ",
" c black",
". c #020F06",
"X c #070B0F",
"o c #08090C",
"O c #0C0C0C",
"+ c #1D1F00",
"@ c #020912",
"# c #000A14",
"$ c #131313",
"% c #161616",
"& c #191919",
"* c #251E17",
"= c #083417",
"- c #292B00",
"; c #3F1E31",
": c #04323D",
"> c #232323",
", c #222126",
"< c gray14",
"1 c gray15",
"2 c #2B2525",
"3 c #20262C",
"4 c #2A2A2A",
"5 c #3E2525",
"6 c #2C2F32",
"7 c gray20",
"8 c gray22",
"9 c #3A3C3E",
"0 c #490C00",
"q c #7C0B10",
"w c #4C2400",
"e c #4C3100",
"r c #483F00",
"t c #403326",
"y c #4B3C2D",
"u c #236119",
"i c #6F7509",
"p c #241856",
"a c #1F265A",
"s c #522244",
"d c #414141",
"f c #464646",
"g c #4C4646",
"h c #494949",
"j c gray31",
"k c #514C51",
"l c gray34",
"z c #54575A",
"x c #5D5D5D",
"c c #5F5F5F",
"v c #745D46",
"b c #614C61",
"n c #6D4C6D",
"m c gray38",
"M c #646464",
"N c gray40",
"B c #686868",
"V c #7B6C6C",
"C c #727272",
"Z c gray45",
"A c #7B7B7B",
"S c gray50",
"D c #BF1119",
"F c #F52A02",
"G c #FC7800",
"H c #947256",
"J c #20980E",
"K c #1AAF4D",
"L c #20D15C",
"P c #868F00",
"I c #FBA500",
"U c #F0D300",
"Y c #BF9973",
"T c #23308F",
"R c #263498",
"E c #39329C",
"W c #1354A2",
"Q c #5536D9",
"! c #5247F7",
"~ c #885788",
"^ c #A261A2",
"/ c #AA66AA",
"( c #AE68AE",
") c #FF5FC5",
"_ c #C576C5",
"` c #D17DD1",
"' c #FF66CC",
"] c #F069C9",
"[ c #FF68CE",
"{ c #E073CD",
"} c #FF6BD1",
"| c #FF72D8",
" . c #FF77DD",
".. c #FF79DF",
"X. c #0EA7CB",
"o. c #1E80F7",
"O. c gray59",
"+. c gray60",
"@. c #A68F8F",
"#. c #A89999",
"$. c #B09999",
"%. c #B59999",
"&. c #A0A0A0",
"*. c gray65",
"=. c #D79999",
"-. c #F69999",
";. c #FF9999",
":. c #D8AD82",
">. c #F0BB99",
",. c #F0B6A2",
"<. c #FFBBBB",
"1. c #FFBCB9",
"2. c #F0C090",
"3. c #FFCC99",
"4. c #FFC7A2",
"5. c #D882D8",
"6. c #FF95D5",
"7. c #FFB3CC",
"8. c #E086E0",
"9. c #FF80E6",
"0. c #FF85EB",
"q. c #FF86EC",
"w. c #FF8AF0",
"e. c #FF8DF3",
"r. c #FF8FF5",
"t. c #F794F7",
"y. c #FF90F6",
"u. c #FF9DF7",
"i. c #FF92F8",
"p. c #FF94FA",
"a. c #FF97FD",
"s. c #FF99FF",
"d. c #FFA6E6",
"f. c #FFA8E0",
"g. c gray81",
"h. c None",
/* pixels */
"s s s s s s ; t t t t t t t t t t t t 6 h.h.h.h.h.",
"D D D D D q H 3.1.7.7.7.7.7.7.7.7.7.4.:.9 h.h.h.h.",
"F F F F F 0 2.1.s.s.s.s.) s.' i.s.s.d.3.v h.h.h.h.",
"G G G G G w ,.s.' i.s.s.s.s.5._ u.e.p.f.v h.h.h.h.",
"I I I I I e ,.s.s.s.s.s.s.` b j / .i.f.v h.j h.h.",
"U U U U U r ,.s.s.s.s.' i.^ x O.x / u.f.v x O.d h.",
"i 1 1 + P - ,.s.s.0.s.s.s.^ x +.+.x 2 2 m +.+.j h.",
"$ C +.j 4 ,.s.s.| s.s.] n A +.+.+.+.+.+.+.+.C h.",
"J u 1 1 h 1 ,. .9.s.s.s.{ 8 +.&.&.B +.+.+.g.g +.1 ",
"L L L K = . ,.s.s.s.e.i.8.8 #.@., m +.A N 9 g $.2 ",
"X.X.X.X.X.: >.f. .i.0.0.8.8 =.-.H O.+.m +.c $.;.5 ",
"o.o.o.o.W # 2.4.6.s.s.s.t.~ V $.m $ 1 O 3 # +.V h.",
"! ! ! E 4 1 * Y Y Y Y Y Y Y y m C C C C C C z h.h.",
"Q Q Q 1 +.m p & j X h.h.h.h.# d 7 h.h.j 1 h.h.h.h.",
"R R R o 1 a T a 1 h.h.h.h.h.h.3 & h.h.1 $ h.h.h.h."
};
/* XPM */
static char *outerspace[] = {
/* columns rows colors chars-per-pixel */
"8 15 120 2 ",
" c None",
". c black",
"X c black",
"o c black",
"O c black",
"+ c black",
"@ c black",
"# c black",
"$ c black",
"% c black",
"& c black",
"* c black",
"= c black",
"- c black",
"; c black",
": c black",
"> c black",
", c black",
"< c black",
"1 c black",
"2 c black",
"3 c black",
"4 c black",
"5 c black",
"6 c black",
"7 c black",
"8 c black",
"9 c black",
"0 c black",
"q c black",
"w c black",
"e c black",
"r c black",
"t c black",
"y c black",
"u c black",
"i c black",
"p c black",
"a c black",
"s c black",
"d c black",
"f c black",
"g c black",
"h c black",
"j c black",
"k c black",
"l c black",
"z c black",
"x c black",
"c c black",
"v c black",
"b c black",
"n c black",
"m c black",
"M c black",
"N c black",
"B c black",
"V c black",
"C c black",
"Z c black",
"A c black",
"S c black",
"D c black",
"F c black",
"G c black",
"H c black",
"J c black",
"K c black",
"L c black",
"P c black",
"I c black",
"U c black",
"Y c black",
"T c black",
"R c black",
"E c black",
"W c black",
"Q c black",
"! c black",
"~ c black",
"^ c black",
"/ c black",
"( c black",
") c black",
"_ c black",
"` c black",
"' c black",
"] c black",
"[ c black",
"{ c black",
"} c black",
"| c black",
" . c black",
".. c black",
"X. c black",
"o. c black",
"O. c black",
"+. c black",
"@. c black",
"#. c black",
"$. c black",
"%. c black",
"&. c black",
"*. c black",
"=. c black",
"-. c black",
";. c black",
":. c black",
">. c black",
",. c black",
"<. c black",
"1. c black",
"2. c black",
"3. c black",
"4. c black",
"5. c black",
"6. c black",
"7. c black",
"8. c black",
"9. c black",
/* pixels */
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
};
/* XPM */
static char *rainbow[] = {
/* columns rows colors chars-per-pixel */
"8 15 22 1 ",
" c #522244",
". c #BF1119",
"X c #F52A02",
"o c #FC7800",
"O c #FBA500",
"+ c #FCA500",
"@ c #F0D300",
"# c #B4BF00",
"$ c #B5BF00",
"% c #4D9801",
"& c #4E9802",
"* c #4E9801",
"= c #2CCB13",
"- c #20D15C",
"; c #0EA7CB",
": c #0EA6CB",
"> c #1E7FF7",
", c #1E80F7",
"< c #5247F7",
"1 c #5536D9",
"2 c #263498",
"T c None",
/* pixels */
" ",
"TTTT....",
"TTTXXXXX",
"TToooooo",
"TTTOO+O+",
"TTTT@@@@",
"TTT##$##",
"TT&*&&&&",
"TTT=====",
"TTTT----",
"TTT:;;:;",
"TT,>,,,,",
"TTT<<<<<",
"TTTT1111",
"TTT22222"
};
/* XPM */
static char *rainbow[] = {
/* columns rows colors chars-per-pixel */
"8 15 21 1 ",
" c #522244",
". c #BF1119",
"X c #F52A02",
"o c #FC7800",
"O c #FBA500",
"+ c #FCA500",
"@ c #F0D300",
"# c #B4BF00",
"$ c #B5BF00",
"% c #4D9801",
"& c #4E9802",
"* c #4E9801",
"= c #2CCB13",
"- c #20D15C",
"; c #0EA7CB",
": c #0EA6CB",
"> c #1E7FF7",
", c #1E80F7",
"< c #5247F7",
"1 c #5536D9",
"2 c #263498",
/* pixels */
" ",
"........",
"XXXXXXXX",
"oooooooo",
"OOOOO+O+",
"@@@@@@@@",
"#####$##",
"%&&*&&&&",
"========",
"--------",
";;;:;;:;",
">,,>,,,,",
"<<<<<<<<",
"11111111",
"22222222"
};
File added
;;; nyan-mode.el --- Nyan Cat shows position in current buffer in mode-line.
;;;
;;; Nyanyanyanyanyanyanya!
;;;
;;; Author: Jacek "TeMPOraL" Zlydach <temporal.pl@gmail.com>
;;; URL: http://nyan-mode.buildsomethingamazing.com
;;; Version: 0.2
;;; Keywords: nyan, cat, lulz, pop tart cat, build something amazing
;;;
;;; Inspired by (and in few places copied from) sml-modeline.el,
;;; written by Lennart Borgman
;;; See: http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head%3A/util/sml-modeline.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; LICENSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 3, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
;; Floor, Boston, MA 02110-1301, USA.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Some TODOs
;;; * Investigate why wavy rainbow didn't work on Antoszka's computer.
;;; * Refactor-out :set lambdas in customs if possible.
;;; * MAYBE add something to protect users from going to 0 with nyanbar width?
;;; * Add credits for used images.
(defgroup nyan nil
"Customization group for `nyan-mode'."
:group 'frames)
(defun nyan-refresh ()
"Refresh after option changes if loaded."
(when (featurep 'nyan-mode)
(when (and (boundp 'nyan-mode)
nyan-mode)
(nyan-mode -1)
(nyan-mode 1))))
(defcustom nyan-animation-frame-interval 0.2
"Number of seconds between animation frames."
:set (lambda (sym val)
(set-default sym val)
(nyan-refresh))
:group 'nyan)
(defvar nyan-animation-timer nil)
(defvar nyan-animation-loop-count 0)
(defvar nyan-animation-loop-max 1)
(defun nyan-start-animation ()
(interactive)
(when (not nyan-animation-timer)
(setq nyan-animation-timer
(run-at-time "0 sec"
nyan-animation-frame-interval
'nyan-swich-anim-frame)
nyan-animation-loop-count 0)))
(defun nyan-stop-animation ()
(interactive)
(when nyan-animation-timer
(cancel-timer nyan-animation-timer)
(setq nyan-animation-timer nil)))
;; mplayer needs to be installed for that
(defun nyan-start-music ()
(interactive)
(start-process-shell-command "nyan-music" "nyan-music" (concat "mplayer " +nyan-music+ " -loop 0")))
(defun nyan-stop-music ()
(interactive)
(kill-process "nyan-music"))
;;; FIXME bug, doesn't work for antoszka.
(defcustom nyan-wavy-trail nil
"If enabled, Nyan Cat's rainbow trail will be wavy."
:type '(choice (const :tag "Enabled" t)
(const :tag "Disabled" nil))
:set (lambda (sym val)
(set-default sym val)
(nyan-refresh))
:group 'nyan)
(defcustom nyan-bar-length 32
"Length of Nyan Cat bar in units; each unit is equal to an 8px
image. Minimum of 3 units are required for Nyan Cat."
:set (lambda (sym val)
(set-default sym val)
(nyan-refresh))
:group 'nyan)
(defcustom nyan-animate-nyancat nil
"Enable animation for Nyan Cat.
This can be t or nil."
:type '(choice (const :tag "Enabled" t)
(const :tag "Disabled" nil))
:set (lambda (sym val)
(set-default sym val)
(if val
(nyan-start-animation)
(nyan-stop-animation))
(nyan-refresh))
:group 'nyan)
(defcustom nyan-cat-face-number 1
"Select cat face number for console."
)
(defconst +nyan-directory+ (file-name-directory (or load-file-name buffer-file-name)))
(defconst +nyan-cat-size+ 3)
(defconst +nyan-cat-image+ (concat +nyan-directory+ "img/nyan.xpm"))
(defconst +nyan-cat-start-image+ (concat +nyan-directory+ "img/nyan-start.xpm"))
(defconst +nyan-rainbow-image+ (concat +nyan-directory+ "img/rainbow.xpm"))
(defconst +nyan-rainbow-start-image+ (concat +nyan-directory+ "img/rainbow-start.xpm"))
(defconst +nyan-outerspace-image+ (concat +nyan-directory+ "img/outerspace.xpm"))
(defconst +nyan-music+ (concat +nyan-directory+ "mus/nyanlooped.mp3"))
;;; Load images of Nyan Cat an it's rainbow.
(defvar nyan-cat-image (create-image +nyan-cat-image+ 'xpm nil :ascent 'center))
(defvar nyan-cat-start-image (create-image +nyan-cat-start-image+ 'xpm nil :ascent 'center))
(defvar nyan-animation-frames (mapcar (lambda (id)
(create-image (concat +nyan-directory+ (format "img/nyan-frame-%d.xpm" id))
'xpm nil :ascent 'center))
'(1 2 3 4 5 6)))
(defvar nyan-last-rainbow-count 0)
(defvar nyan-current-frame 0)
(defconst +catface+ [
["[]*" "[]#"]
["(*^ー゚)" "( ^ー^)" "(^ー^ )" "(゚ー^*)"]
["(´ω`三 )" "( ´ω三` )" "( ´三ω` )" "( 三´ω`)"
"( 三´ω`)" "( ´三ω` )" "( ´ω三` )" "(´ω`三 )"]
["(´д`;)" "( ´д`;)" "( ;´д`)" "(;´д` )"]
["(」・ω・)」" "(/・ω・)/" "(」・ω・)」" "(/・ω・)/"
"(」・ω・)」" "(/・ω・)/" "(」・ω・)」" "\(・ω・)/"]
["(>ワ<三   )" "( >ワ三<  )"
"(  >三ワ< )" "(   三>ワ<)"
"(  >三ワ< )" "( >ワ三<  )"]])
(defun nyan-swich-anim-frame ()
(when (> nyan-animation-loop-count nyan-animation-loop-max)
(nyan-stop-animation))
(setq nyan-current-frame (% (+ 1 nyan-current-frame) 6))
(when (equal nyan-current-frame 5)
(setq nyan-animation-loop-count (1+ nyan-animation-loop-count)))
(redraw-modeline))
(defun nyan-get-anim-frame (rainbows &optional start)
(if (and nyan-animation-timer (> rainbows 0))
(nth nyan-current-frame nyan-animation-frames)
(if start nyan-cat-start-image nyan-cat-image)))
(defun nyan-wavy-rainbow-ascent (number)
(if nyan-animation-timer
(min 100 (+ 81
(* 3 (abs (- (/ 6 2)
(% (+ number nyan-current-frame)
6))))))
(if (< (% number 6) 3) 90 'center)))
(defun nyan-number-of-rainbows ()
(round (/ (* (round (* 100
(/ (- (float (point))
(float (point-min)))
(float (point-max)))))
(- nyan-bar-length +nyan-cat-size+))
100)))
(defun catface () (aref +catface+ nyan-cat-face-number))
(defun catface-index ()
(min (round (/ (* (round (* 100
(/ (- (float (point))
(float (point-min)))
(float (point-max)))))
(length (catface)))
100)) (- (length (catface)) 1)))
(defun nyan-create ()
(let* ((rainbows (nyan-number-of-rainbows))
(outerspaces (- nyan-bar-length rainbows +nyan-cat-size+))
(rainbow-string "")
(rainbow-start t)
(nyancat-string (propertize
(aref (catface) (catface-index))
'display (nyan-get-anim-frame rainbows (eq rainbows 0))))
(outerspace-string ""))
(if (and nyan-animate-nyancat
(not (equal nyan-last-rainbow-count rainbows)))
(nyan-start-animation))
(setq nyan-last-rainbow-count rainbows)
(dotimes (number rainbows)
(setq rainbow-string
(concat rainbow-string
(propertize
"|"
'display (create-image (if rainbow-start +nyan-rainbow-start-image+
+nyan-rainbow-image+)
'xpm nil
:ascent
(if (and nyan-wavy-trail
(or (not nyan-animate-nyancat)
(and nyan-animate-nyancat nyan-animation-timer)))
(nyan-wavy-rainbow-ascent number)
'center)))))
(setq rainbow-start nil)
)
(dotimes (number outerspaces)
(setq outerspace-string
(concat outerspace-string
(propertize
"-"
'display (create-image +nyan-outerspace-image+
'xpm nil :ascent (if nyan-animation-timer 95 'center))))))
;; Compute Nyan Cat string.
(concat rainbow-string
nyancat-string
outerspace-string)))
(defvar nyan-old-car-mode-line-position nil)
;;;###autoload
(define-minor-mode nyan-mode
"Use NyanCat to show buffer size and position in mode-line.
You can customize this minor mode, see option `nyan-mode'.
Note: If you turn this mode on then you probably want to turn off
option `scroll-bar-mode'."
:global t
:group 'nyan
(if nyan-mode
(progn
(unless nyan-old-car-mode-line-position
(setq nyan-old-car-mode-line-position (car mode-line-position)))
(setcar mode-line-position '(:eval (list (nyan-create)))))
(setcar mode-line-position nyan-old-car-mode-line-position)))
(provide 'nyan-mode)
;;; nyan-mode.el ends here
# Evernote contribution layer for Spacemacs
![evernote](img/evernote.png) _with_ ![geeknote](img/geeknote.png)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [Evernote contribution layer for Spacemacs](#evernote-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Layer](#layer)
- [geeknote](#geeknote)
- [geeknote.el](#geeknoteel)
- [Key Bindings](#key-bindings)
<!-- markdown-toc end -->
## Description
This layer group together packages to work with [Evernote][].
It uses the non official Evernote command line [geeknote][] which allows
users to write notes in markdown, and sync them.
[geeknote.el][] is a wrapper for some of the most used `geeknote` commands.
By default, `geeknote.el` doesn't have key bindings defined. This
contribution layer provides key bindings for all of geeknote.el's
exposed features.
## Install
### Layer
To use this contribution add it to your `~/.spacemacs`
```elisp
(setq-default dotspacemacs-configuration-layers '(evernote)
"List of contribution to load."
)
```
### geeknote
The command `geeknote` is expected to be present in your `$PATH`. To
obtain this utility, please refer to the official geeknote
[documentation][geeknote-doc].
### geeknote.el
`geeknote.el` relies on having a correctly setup geeknote editor. To set
this up, run the following command in your terminal after successfully
installing `geeknote`:
```
$ geeknote settings --editor "emacsclient"
```
If you would prefer to customize the geeknote command to be used
such as specifying the path to the geeknote python script, please
refer to the `geeknote.el` [documentation][geeknote.el].
## Key Bindings
Key Binding | Description
----------------------|------------------------------------------------
<kbd>SPC a g c</kbd> | create a new note
<kbd>SPC a g e</kbd> | edit an existing note
<kbd>SPC a g f</kbd> | find a note using a keyword
<kbd>SPC a g s</kbd> | show an existing note
<kbd>SPC a g r</kbd> | remove an existing note
[Evernote]: https://evernote.com/
[geeknote]: http://www.geeknote.me
[geeknote-doc]: http://www.geeknote.me/documentation/
[geeknote.el]: https://github.com/avendael/emacs-geeknote
contrib/evernote/img/evernote.png

22.6 KB

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment