branch: elpa/git-modes
commit 5e50992875c8bfd1192bbfa8d742f6e81b2fe6eb
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    Improve indentation of cond and interactive
    
    Emacs 31.1 adds variable `lisp-indent-local-overrides'.
---
 .dir-locals.el        | 2 ++
 gitattributes-mode.el | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.dir-locals.el b/.dir-locals.el
index 7c6424f0657..f1fff942652 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,5 +1,7 @@
 ((nil
   (indent-tabs-mode . nil))
+ (emacs-lisp-mode
+  (lisp-indent-local-overrides . ((cond . 0) (interactive . 0))))
  (makefile-mode
   (indent-tabs-mode . t))
  (git-commit-mode
diff --git a/gitattributes-mode.el b/gitattributes-mode.el
index 071614a9553..e1f2c68a06b 100644
--- a/gitattributes-mode.el
+++ b/gitattributes-mode.el
@@ -121,10 +121,10 @@ If NO-STATE is non-nil then do not print state."
                                          gitattributes-mode-attributes)))
       (concat (unless no-state
                 (cond
-                 ((string= (match-string 1) "-") "[Unset] ")
-                 ((string= (match-string 1) "!") "[Unspecified] ")
-                 ((string= (match-string 3) "=") "[Set to a value] ")
-                 (t "[Set] ")))
+                  ((string= (match-string 1) "-") "[Unset] ")
+                  ((string= (match-string 1) "!") "[Unspecified] ")
+                  ((string= (match-string 3) "=") "[Set to a value] ")
+                  (t "[Set] ")))
               (cadr entry)))))
 
 (defvar gitattributes-mode-syntax-table

Reply via email to