nix-mode
nix-mode copied to clipboard
ident-for-tab-command moves the cursor
Pressing tab, with the cursor in the middle of an expression, always moves it to the start of the line.
My expectation would be that it leaves the cursor where it was, relative to the expression (which may be moved). Wrapping the command in (save-excursion) might be good enough to ensure that, but I haven't tried it.
What is `nix-indent-function' set to for you?
That variable doesn't exist.