nix-mode icon indicating copy to clipboard operation
nix-mode copied to clipboard

ident-for-tab-command moves the cursor

Open Baughn opened this issue 7 years ago • 2 comments

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.

Baughn avatar Jun 27 '18 14:06 Baughn

What is `nix-indent-function' set to for you?

matthewbauer avatar Jun 27 '18 14:06 matthewbauer

That variable doesn't exist.

Baughn avatar Jun 28 '18 11:06 Baughn