Questions tagged [indent-tabs-mode]
2 questions
2
votes
1 answer
Changing indent-tabs-mode and electric-indent-mode in a buffer
I want to change indent-tabs-mode and electric-indent-mode to nil. There exist three possibilities
setq-default
setq-local
setq
I think setq-default only changes the behaviour for major modes where the variable indent-tabs-mode has not been…

Dilna
- 1,173
- 3
- 10
1
vote
1 answer
Use spaces for indentation in Protocol-Buffers mode
Protocol-Buffers mode binds c-indent-line-or-region to the TAB key. Since one of my projects uses 4 spaces for .proto file indentation, I've tried customizing indent-tabs-mode to nil, and tab-width and c-basic-offset both to 4. However, pressing TAB…

Esteban
- 111
- 2