branch: externals/indent-bars
commit 070ab26c6d68cc99eadb44b57df4fc8627302532
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>

    new 'force option for init-scope
---
 indent-bars-ts.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index 2b80171d15..3963c9d118 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -300,9 +300,11 @@ both)."
                          #'indent-bars-ts--update-scope1))))
 
 ;;;; Setup
-(defun indent-bars-ts--init-scope ()
-  "Initialize scope style and variables."
-  (unless (get 'indent-bars-ts-setup :init-scope)
+(defun indent-bars-ts--init-scope (&optional force)
+  "Initialize scope style and variables.
+If FORCE is non-nil, initialize even if this has already been
+performed."
+  (unless (or force (get 'indent-bars-ts-setup :init-scope))
     (indent-bars-ts--add-customs)
     (indent-bars--initialize-style
      (setq indent-bars-ts-out-scope-style (indent-bars--new-style)))

Reply via email to