Skip to content

Commit

Permalink
Add missing defcustom :type specs
Browse files Browse the repository at this point in the history
The lack of these causes byte compilation warnings in recent emacsen.
  • Loading branch information
purcell authored Apr 22, 2017
1 parent 98f2283 commit 8cc3c4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nyan-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@

(defcustom nyan-animation-frame-interval 0.2
"Number of seconds between animation frames."
:type 'float
:set (lambda (sym val)
(set-default sym val)
(nyan-refresh))
Expand Down Expand Up @@ -124,6 +125,7 @@
(defcustom nyan-minimum-window-width 64
"Determines the minimum width of the window, below which nyan-mode will not be displayed.
This is important because nyan-mode will push out all informations from small windows."
:type 'integer
:set (lambda (sym val)
(set-default sym val)
(nyan-refresh))
Expand All @@ -142,6 +144,7 @@ This is important because nyan-mode will push out all informations from small wi
(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."
:type 'integer
:set (lambda (sym val)
(set-default sym val)
(nyan-refresh))
Expand All @@ -162,6 +165,8 @@ This can be t or nil."

(defcustom nyan-cat-face-number 1
"Select cat face number for console."
:type 'integer
:group 'nyan
)

;;; Load images of Nyan Cat an it's rainbow.
Expand Down

0 comments on commit 8cc3c4a

Please sign in to comment.