branch: elpa/nix-mode
commit 1798168074a845fb73bf72aff49585f9e8e8ca4e
Author: Jakub Piecuch <[email protected]>
Commit: Jakub Piecuch <[email protected]>

    Use nix-indent-function when setting indent-line-function.
---
 nix-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nix-mode.el b/nix-mode.el
index 867c4945b6..4de967ed6b 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -728,7 +728,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
               :forward-token 'nix-smie--forward-token
               :backward-token 'nix-smie--backward-token)
   (setq-local smie-indent-basic 2)
-  (setq-local indent-line-function 'smie-indent-line)
+  (setq-local indent-line-function nix-indent-function)
   (fset (make-local-variable 'smie-indent-exps)
         (symbol-function 'nix-smie--indent-exps))
   (fset (make-local-variable 'smie-indent-close)

Reply via email to