Skip to content

Commit

Permalink
doc: Add customization groups to make searching easier
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed May 23, 2024
1 parent 1a6235d commit 7b2fe2d
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions parinfer-rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ against and is known to be api compatible.")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; User customization options
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defgroup parinfer-rust-mode nil
"Smart paren management for lisps using the parinfer-rust library."
:group 'lisp
:prefix "parinfer-rust-")

(defgroup parinfer-rust-options nil
"Language specific options for parinfer-rust."
:group 'parinfer-rust-mode
:prefix "parinfer-rust-")

(defcustom parinfer-rust-auto-download nil
"Automatically download the latest version of parinfer-rust from GitHub."
:type 'boolean
Expand Down Expand Up @@ -339,22 +349,22 @@ implementations.")
See `parinfer-rust--option-type' for a more complete explanation of the options."
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)
:group 'parinfer-rust-options)

(defcustom parinfer-rust-janet-options '(:comment-char "#")
"Options to configure parinfer-rust for janet.
See `parinfer-rust--option-type' for a more complete explanation of the options."
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)
:group 'parinfer-rust-options)

(defcustom parinfer-rust-lisp-options '(:lisp-vline-symbols t
:lisp-block-comments t)
"Options to configure parinfer-rust for LISP.
See `parinfer-rust--option-type' for a more complete explanation of the options."
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)
:group 'parinfer-rust-options)

(defcustom parinfer-rust-racket-options '(:lisp-vline-symbols t
:lisp-block-comments t
Expand All @@ -363,7 +373,7 @@ See `parinfer-rust--option-type' for a more complete explanation of the options.
See `parinfer-rust--option-type' for a more complete explanation of the options."
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)
:group 'parinfer-rust-options)

(defcustom parinfer-rust-guile-options '(:lisp-vline-symbols t
:lisp-block-comments t
Expand All @@ -373,7 +383,7 @@ See `parinfer-rust--option-type' for a more complete explanation of the options.
See `parinfer-rust--option-type' for a more complete explanation of the options."
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)
:group 'parinfer-rust-options)

(defcustom parinfer-rust-scheme-options '(:lisp-vline-symbols t
:lisp-block-comments t
Expand All @@ -382,7 +392,7 @@ See `parinfer-rust--option-type' for a more complete explanation of the options.
See `parinfer-rust--option-type' for a more complete explanation of the options."
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)
:group 'parinfer-rust-options)

;;;;;;;;;;;;;;;;;;;;;;;;;
;; Setup
Expand Down Expand Up @@ -665,6 +675,7 @@ If a change is detected in the buffer, prompt the user to see if they still want
(parinfer-rust--execute))
t)))


(defun parinfer-rust--check-for-issues (&rest _)
"Check for issues that can cause unwanted behaviors.
Expand Down

0 comments on commit 7b2fe2d

Please sign in to comment.