branch: elpa/nix-mode
commit be7184ffcd172fc6a923f9f74a6304d8785de945
Author: Yorick van Pelt <[email protected]>
Commit: Yorick van Pelt <[email protected]>
use tab-width instead of hardcoded '2'
---
nix-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix-mode.el b/nix-mode.el
index cf27af56f4..bf50a86285 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) (looking-at
"let\\|with\\|\\[\\|{"))
(indent-line-to matching-indentation)
- (indent-line-to (+ 2 matching-indentation)))
+ (indent-line-to (+ tab-width matching-indentation)))
t)))
(defun nix-indent-prev-level ()