branch: externals/indent-bars
commit 5cb8d0167a744a70b4470484d5fa4df1c6087654
Merge: efe73fc29f 17eab78420
Author: JD Smith <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #126 from oryktos/feat_r-offset
Add `r-ts-mode` and `ess-mode` to `indent-bars--guess-spacing`
---
indent-bars.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/indent-bars.el b/indent-bars.el
index ec6e0b7003..0d2f7a34a8 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1762,6 +1762,12 @@ Adapted from `highlight-indentation-mode'."
tcl-indent-level)
((and (derived-mode-p 'haml-mode) (boundp 'haml-indent-offset))
haml-indent-offset)
+ ((and (derived-mode-p 'r-ts-mode) (boundp 'r-ts-mode-indent-offset))
+ r-ts-mode-indent-offset)
+ ((and (derived-mode-p 'r-ts-mode) (boundp 'r-ts-mode-indent-level))
+ r-ts-mode-indent-level)
+ ((and (derived-mode-p 'ess-mode) (boundp 'ess-indent-offset))
+ ess-indent-offset)
((and (boundp 'standard-indent) standard-indent))
(t 4))) ; backup