emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/indent-bars 0fba69208c 2/8: add custom-set to non-gener


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 0fba69208c 2/8: add custom-set to non-generated -ts custom vars
Date: Thu, 19 Sep 2024 12:58:45 -0400 (EDT)

branch: externals/indent-bars
commit 0fba69208c1a6184f40623724510bcde005fdb54
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    add custom-set to non-generated -ts custom vars
---
 indent-bars-ts.el | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index a1ad2c6768..44bc3b7ade 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -89,7 +89,8 @@ styling.  If instead this is set to `in-scope', the 
out-of-scope
 bars share the default style, and in-scope bars are configured
 with alternate styling using the *-ts-* variables."
   :type '(choice (const :tag "Out of scope" out-of-scope)
-                (const :tag "In scope" in-scope)))
+                (const :tag "In scope" in-scope))
+  :set #'indent-bars--custom-set)
 
 (defun indent-bars-ts--add-customs ()
   "Add all the relevant custom variables for the alternate ts style."
@@ -120,7 +121,8 @@ this option."
                 (alist :tag "Alist of node types"
                        :key-type (symbol :tag "Language")
                        :value-type (repeat :tag "Types" (symbol :tag "Type"))))
-  :group 'indent-bars-ts)
+  :group 'indent-bars-ts
+  :set #'indent-bars--custom-set)
 
 (defcustom indent-bars-treesit-scope nil
   "An alist of language and treesitter node types to emphasize.
@@ -133,12 +135,14 @@ which mirror and inherit from the normal style variables."
                 (alist :tag "Alist of node types"
                        :key-type (symbol :tag "Language")
                        :value-type (repeat :tag "Types" (symbol :tag "Type"))))
-  :group 'indent-bars-ts)
+  :group 'indent-bars-ts
+  :set #'indent-bars--custom-set)
 
 (defcustom indent-bars-treesit-scope-min-lines 3
   "Minimum number of lines a node must span to be counted as a scope."
   :type 'integer
-  :group 'indent-bars-ts)
+  :group 'indent-bars-ts
+  :set #'indent-bars--custom-set)
 
 (defcustom indent-bars-treesit-ignore-blank-lines-types nil
   "Do not style blank lines when the type of node at start is in this list.
@@ -150,7 +154,8 @@ grammar.  Only applicable if 
`indent-bars-display-on-blank-lines'
 is set."
   :type '(choice (const :tag "None" nil)
                 (repeat :tag "Node types" string))
-  :group 'indent-bars-ts)
+  :group 'indent-bars-ts
+  :set #'indent-bars--custom-set)
 
 (defcustom indent-bars-treesit-update-delay 0.125
   "Idle time in seconds for treesitter scope updates to occur.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]