]> code.delx.au - gnu-emacs-elpa/commitdiff
Add defcustom types.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 5 Sep 2015 18:17:31 +0000 (11:17 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sat, 5 Sep 2015 18:17:31 +0000 (11:17 -0700)
context-coloring.el

index a29c7eb3d78676f66de20a5dae4cbb3a0708151d..055e7219e6f612b7251feaabac0bfaae32930548 100644 (file)
@@ -184,6 +184,7 @@ START, END and LENGTH are recorded for later use."
 
 Increase this if your machine is high-performing.  Decrease it if
 it ain't."
+  :type 'float
   :group 'context-coloring)
 
 (make-obsolete-variable
@@ -248,10 +249,12 @@ it ain't."
 
 (defcustom context-coloring-syntactic-comments t
   "If non-nil, also color comments using `font-lock'."
+  :type 'boolean
   :group 'context-coloring)
 
 (defcustom context-coloring-syntactic-strings t
   "If non-nil, also color strings using `font-lock'."
+  :type 'boolean
   :group 'context-coloring)
 
 (defun context-coloring-font-lock-syntactic-comment-function (state)
@@ -308,6 +311,8 @@ are scoped to a file (as in Node.js), set this to `1'."
 
 The block-scoped `let' and `const' are introduced in ES6.  Enable
 this for ES6 code; disable it elsewhere."
+  :type 'boolean
+  :safe #'booleanp
   :group 'context-coloring)
 
 (make-obsolete-variable