I've setup the indentation for tabs in Rust to be 2 whitespaces. That's what I want. And in my config it looks like this:
(add-hook 'rust-mode-hook
(lambda ()
(setq indent-tabs-mode nil)
(setq tab-width 2)
(setq rust-indent-offset 2)))
What's the difference between tab-width
and rust-indent-offset
or <lang>-indent-offset
?