Update nyan cat package to be compatible with emacs 29
This commit is contained in:
parent
9cdf97f87e
commit
3370a45e11
1 changed files with 26 additions and 26 deletions
|
@ -116,8 +116,8 @@ This can be t or nil."
|
|||
:group 'nyan)
|
||||
|
||||
(defcustom nyan-cat-face-number 1
|
||||
"Select cat face number for console."
|
||||
)
|
||||
"Select cat face number for console.")
|
||||
|
||||
|
||||
(defconst +nyan-directory+ (file-name-directory (or load-file-name buffer-file-name)))
|
||||
|
||||
|
@ -157,12 +157,12 @@ This can be t or nil."
|
|||
"( >三ワ< )" "( >ワ三< )"]])
|
||||
|
||||
(defun nyan-swich-anim-frame ()
|
||||
(when (> nyan-animation-loop-count nyan-animation-loop-max)
|
||||
(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))
|
||||
(force-mode-line-update))
|
||||
|
||||
(defun nyan-get-anim-frame (rainbows &optional start)
|
||||
(if (and nyan-animation-timer (> rainbows 0))
|
||||
|
@ -224,8 +224,8 @@ This can be t or nil."
|
|||
(and nyan-animate-nyancat nyan-animation-timer)))
|
||||
(nyan-wavy-rainbow-ascent number)
|
||||
'center)))))
|
||||
(setq rainbow-start nil)
|
||||
)
|
||||
(setq rainbow-start nil))
|
||||
|
||||
(dotimes (number outerspaces)
|
||||
(setq outerspace-string
|
||||
(concat outerspace-string
|
||||
|
|
Reference in a new issue