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

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

[nongnu] elpa/nix-mode b8aed79f89 211/500: No need to indent on = and ;


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode b8aed79f89 211/500: No need to indent on = and ; (ruins your day)
Date: Sat, 29 Jan 2022 08:27:07 -0500 (EST)

branch: elpa/nix-mode
commit b8aed79f89a8ab43aecd76cf3a2c3cbbc70b0400
Author: Yorick van Pelt <yorick@yorickvanpelt.nl>
Commit: Yorick van Pelt <yorick@yorickvanpelt.nl>

    No need to indent on = and ; (ruins your day)
---
 nix-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 7dee062e7c..21429fa5a9 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -371,7 +371,7 @@ STRING-TYPE type of string based off of Emacs syntax table 
types"
     (when matching-indentation
       (if (save-excursion (beginning-of-line)
                           (skip-chars-forward "[:space:]")
-                          (looking-at "let\\|with\\|\\[\\|{"))
+                          (looking-at "let\\|with\\|\\[\\|{\\|("))
           (indent-line-to matching-indentation)
         (indent-line-to (+ tab-width matching-indentation)))
       t)))
@@ -491,7 +491,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
   ;; Recommended by nixpkgs manual: 
https://nixos.org/nixpkgs/manual/#sec-syntax
   (setq-local indent-tabs-mode nil)
   (setq-local tab-width 2)
-  (setq-local electric-indent-chars '(?\n ?{ ?} ?[ ?] ?= ?\;))
+  (setq-local electric-indent-chars '(?\n ?{ ?} ?[ ?] ?( ?)))
 
   ;; Font lock support.
   (setq-local font-lock-defaults '(nix-font-lock-keywords))



reply via email to

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