branch: elpa/nix-mode
commit b8aed79f89a8ab43aecd76cf3a2c3cbbc70b0400
Author: Yorick van Pelt <[email protected]>
Commit: Yorick van Pelt <[email protected]>
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))