Skip to content

Commit

Permalink
Move defcustom above usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyfreeman committed Aug 16, 2023
1 parent 92a50b7 commit 6cba90c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions clojure-ts-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@
(lm-version (or load-file-name buffer-file-name)))
"The current version of `clojure-ts-mode'.")

(defcustom clojure-ts-comment-macro-font-lock-body nil
"Highlight the entire body of a comment macro as a comment.
When set to a non-nil value, applies the comment font-locking face to the entire
body of comment macros.
When nil (the default), the body of comment macros uses default font-locking
rules for whatever expressions are in the body, except for the comment symbol
itself."
:safe #'booleanp
:type 'boolean
:package-version '(clojure-ts-mode . "0.1.3"))

(defvar clojure-ts--debug nil
"Enables debugging messages, shows current node in mode-line.
Only intended for use at development time.")
Expand Down Expand Up @@ -533,18 +545,6 @@ Includes a dispatch value when applicable (defmethods)."
By default `treesit-defun-name-function' is used to extract definition names.
See `clojure-ts--standard-definition-node-name' for the implementation used.")

(defcustom clojure-ts-comment-macro-font-lock-body nil
"Highlight the entire body of a comment macro as a comment.
When set to a non-nil value, applies the comment font-locking face to the entire
body of comment macros.
When nil (the default), the body of comment macros uses default font-locking
rules for whatever expressions are in the body, except for the comment symbol
itself."
:safe #'booleanp
:type 'boolean
:package-version '(clojure-ts-mode . "0.1.3"))

(defvar clojure-ts--fixed-indent-rules
;; This is in contrast to semantic
;; fixed-indent-rules come from https://tonsky.me/blog/clojurefmt/
Expand Down

0 comments on commit 6cba90c

Please sign in to comment.