diff options
author | Jacek TeMPOraL Złydach <temporal.pl@gmail.com> | 2016-04-29 22:23:58 +0200 |
---|---|---|
committer | Jacek TeMPOraL Złydach <temporal.pl@gmail.com> | 2016-04-29 22:23:58 +0200 |
commit | b5db3a612bba35c8f54f44c300ebc879db6b3288 (patch) | |
tree | 27525abbad7ed1bccf122774a5b9e59f3a5816ef | |
parent | 95034cefb34df3b11a547e75a4b85c423502341d (diff) |
Added #'nyan-toggle-wavy-trail.v1.1.1
Manually setting this variable was kinda annoying.
-rw-r--r-- | README.org | 4 | ||||
-rw-r--r-- | nyan-mode.el | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -28,8 +28,8 @@ point from 0% to 100%. - *NEW!* You can scroll the buffer by clicking in the Nyan Cat area! - *NEW!* You can customize the minimum window width below which Nyan Mode will be disabled. - 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=), + - Animation (=M-x nyan-start-animation=, =M-x nyan-stop-animation=), + - Wavy rainbow (=M-x nyan-toggle-wavy-trail=), - Music, mplayer is needed (=M-x nyan-start-music=, =M-x nyan-stop-music=) (thanks, George Leontiev!), - Customizable properties. diff --git a/nyan-mode.el b/nyan-mode.el index 418e3ff..0e1048c 100644 --- a/nyan-mode.el +++ b/nyan-mode.el @@ -4,7 +4,7 @@ ;; Author: Jacek "TeMPOraL" Zlydach <temporal.pl@gmail.com> ;; URL: https://github.com/TeMPOraL/nyan-mode/ -;; Version: 1.1.0 +;; Version: 1.1.1 ;; Keywords: nyan, cat, lulz, scrolling, pop tart cat, build something amazing ;; This file is not part of GNU Emacs. @@ -187,6 +187,10 @@ This can be t or nil." "( >三ワ< )" "( 三>ワ<)" "( >三ワ< )" "( >ワ三< )"]]) +(defun nyan-toggle-wavy-trail () + "Toggle the trail to look more like the original Nyan Cat animation." + (interactive) + (setq nyan-wavy-trail (not nyan-wavy-trail))) (defun nyan-swich-anim-frame () (setq nyan-current-frame (% (+ 1 nyan-current-frame) 6)) |