2

I set all tab-width parameters and indent parameters to 2, but Emacs always uses 8 for the tab space when I press the TAB key at the beginning of a line, if i opened one bracket.

How can i set the tab for one bracket to 2 instead of 8?

1
  • 1
    tab-width is basically only relevant to how should Emacs display TAB characters. What you need is to tweak the indentation parameters, so please tell us precisely what are those "indent parameters" you have "set to 2", since that's probably the source of your problem.
    – Stefan
    Jan 11, 2019 at 15:01

1 Answer 1

1

M-x customize-variable tcl-indent-level

tab-width is used by modes that are based on c-mode; tcl-mode is different, standalone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.