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

    Add reset to enable-theme-functions
---
 indent-bars.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/indent-bars.el b/indent-bars.el
index 91b38de439..24dcc83a2f 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1248,7 +1248,7 @@ Adapted from `highlight-indentation-mode'."
   (remove-hook 'font-lock-extend-region-functions
               #'indent-bars--extend-blank-line-regions t))
 
-(defun indent-bars-reset ()
+(defun indent-bars-reset (&rest _r)
   "Reset indent-bars config."
   (interactive)
   (indent-bars-teardown)
@@ -1273,6 +1273,10 @@ Adapted from `highlight-indentation-mode'."
        (indent-bars-setup))
     (indent-bars-teardown)))
 
+;; Theme support
+(if (boundp 'enable-theme-functions)
+    (add-hook 'enable-theme-functions #'indent-bars-reset))
+
 (provide 'indent-bars)
 
 ;;; indent-bars.el ends here

Reply via email to