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

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

[elpa] externals/indent-bars 4583e3e9f5 240/431: Add reset to enable-the


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 4583e3e9f5 240/431: Add reset to enable-theme-functions
Date: Mon, 16 Sep 2024 12:59:32 -0400 (EDT)

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

    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

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