branch: elpa/nix-mode
commit cb392d45b669436fed3b0fd52f2c9a6bab208194
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>

    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