Skip to content

Commit 6cba90c

Browse files
committed
Move defcustom above usage
1 parent 92a50b7 commit 6cba90c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

clojure-ts-mode.el

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@
7373
(lm-version (or load-file-name buffer-file-name)))
7474
"The current version of `clojure-ts-mode'.")
7575

76+
(defcustom clojure-ts-comment-macro-font-lock-body nil
77+
"Highlight the entire body of a comment macro as a comment.
78+
79+
When set to a non-nil value, applies the comment font-locking face to the entire
80+
body of comment macros.
81+
When nil (the default), the body of comment macros uses default font-locking
82+
rules for whatever expressions are in the body, except for the comment symbol
83+
itself."
84+
:safe #'booleanp
85+
:type 'boolean
86+
:package-version '(clojure-ts-mode . "0.1.3"))
87+
7688
(defvar clojure-ts--debug nil
7789
"Enables debugging messages, shows current node in mode-line.
7890
Only intended for use at development time.")
@@ -533,18 +545,6 @@ Includes a dispatch value when applicable (defmethods)."
533545
By default `treesit-defun-name-function' is used to extract definition names.
534546
See `clojure-ts--standard-definition-node-name' for the implementation used.")
535547

536-
(defcustom clojure-ts-comment-macro-font-lock-body nil
537-
"Highlight the entire body of a comment macro as a comment.
538-
539-
When set to a non-nil value, applies the comment font-locking face to the entire
540-
body of comment macros.
541-
When nil (the default), the body of comment macros uses default font-locking
542-
rules for whatever expressions are in the body, except for the comment symbol
543-
itself."
544-
:safe #'booleanp
545-
:type 'boolean
546-
:package-version '(clojure-ts-mode . "0.1.3"))
547-
548548
(defvar clojure-ts--fixed-indent-rules
549549
;; This is in contrast to semantic
550550
;; fixed-indent-rules come from https://tonsky.me/blog/clojurefmt/

0 commit comments

Comments
 (0)