branch: externals/indent-bars
commit accb7d00d2dd86944909b81dc45391813106ca74
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>
error for indent-tabs-mode=t
---
indent-bars.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/indent-bars.el b/indent-bars.el
index f1a4cd6986..744252b80c 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -828,8 +828,13 @@ Adapted from `highlight-indentation-mode'."
(add-hook 'font-lock-extend-region-functions
#'indent-bars--extend-blank-line-regions 95 t))))
+(defvar indent-bars-mode)
(defun indent-bars-setup ()
"Setup all face, color, bar size, and indentation info for the current
buffer."
+ (when indent-tabs-mode
+ (setq indent-bars-mode nil)
+ (error "Indent-bars does not support indent-tabs-mode=t; disabling"))
+
;; Spacing
(setq indent-bars-spacing (indent-bars--guess-spacing))