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

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

[nongnu] elpa/nix-mode cb392d45b6 030/500: tweak indentation


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode cb392d45b6 030/500: tweak indentation
Date: Sat, 29 Jan 2022 08:26:33 -0500 (EST)

branch: elpa/nix-mode
commit cb392d45b669436fed3b0fd52f2c9a6bab208194
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    tweak indentation
---
 nix-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nix-mode.el b/nix-mode.el
index f2575b9767..4015f0c9ed 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -157,8 +157,10 @@ If a close brace `}' ends an antiquote, the next character 
begins a string."
                     (* tab-width (nth 0 (syntax-ppss)))
                     (if (nth 3 (syntax-ppss)) tab-width 0))))
       (cond
+       ;; ((looking-at "})") (- baseline (* 2 tab-width)))
        ((looking-at "[]})]") (- baseline tab-width))
        ((looking-at "''") (- baseline tab-width))
+       ((looking-at ", ") (- baseline tab-width))
        ;; ((nix-inside-args) (- baseline tab-width))
        ;; ((nix-inside-let) (+ baseline tab-width))
        (t baseline)))))



reply via email to

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