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

    Make smie-indent-line the default indent function
---
 nix-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index e2bc726a3c..6e4f5a7a86 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -28,7 +28,7 @@
   "Nix mode customizations"
   :group 'nix)
 
-(defcustom nix-indent-function 'indent-relative
+(defcustom nix-indent-function 'smie-indent-line
   "The function to use to indent.
 
 Valid functions for this are:
@@ -819,7 +819,7 @@ END where to end the region."
                           (nix-is-comment-p)))))
                  ;; Don't mess with strings.
                  (nix-is-string-p))
-            (smie-indent-line)))
+            (funcall nix-indent-function)))
       (forward-line 1))))
 
 ;;;###autoload

Reply via email to