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

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

[elpa] externals/indent-bars 6f6915dec4 411/431: Add Ada and GPR support


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 6f6915dec4 411/431: Add Ada and GPR support.
Date: Mon, 16 Sep 2024 12:59:55 -0400 (EDT)

branch: externals/indent-bars
commit 6f6915dec46635d77516ed9200eb9e47fcb143c4
Author: Troy Brown <brownts@troybrown.dev>
Commit: Troy Brown <brownts@troybrown.dev>

    Add Ada and GPR support.
---
 indent-bars.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/indent-bars.el b/indent-bars.el
index 105c292354..5d766b9c41 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1509,6 +1509,14 @@ WIN defaults to the selected window.  To be set as a 
local
 Adapted from `highlight-indentation-mode'."
   (cond
    (indent-bars-spacing-override)
+   ((and (derived-mode-p 'ada-mode) (boundp 'ada-indent))
+    ada-indent)
+   ((and (derived-mode-p 'ada-ts-mode) (boundp 'ada-ts-mode-indent-offset))
+    ada-ts-mode-indent-offset)
+   ((and (derived-mode-p 'gpr-mode) (boundp 'gpr-indent))
+    gpr-indent)
+   ((and (derived-mode-p 'gpr-ts-mode) (boundp 'gpr-ts-mode-indent-offset))
+    gpr-ts-mode-indent-offset)
    ((and (derived-mode-p 'python-mode) (boundp 'py-indent-offset))
     py-indent-offset)
    ((and (derived-mode-p 'python-mode) (boundp 'python-indent-offset))



reply via email to

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