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

[Question] How to change the indentation width to two spaces

Open dnadales opened this issue 5 years ago • 2 comments

I cannot change the indentation width to 2 spaces, instead of the default 4.

I tried customizing the "Smie Indent Basic" variable, but this had no effect. How can this be achieved?

dnadales avatar Oct 14 '20 11:10 dnadales

Is it possible some other mode like Dtrt-Indent is interfering? On my config, 2 spaces is always used (indent-tabs-mode is nil).

matthewbauer avatar Oct 30 '20 20:10 matthewbauer

Hmm, no, I don't have any indentation package installed that I'm aware of. For the time being I simply changed the indentation method.

dnadales avatar Nov 07 '20 10:11 dnadales