I want to set the indentation mode to tabs only, with a 4 character width for any mode. This seems like a trivial thing, but I have not had success. Every mode seems to have
Use the variable standard-indent
. You can set it in your startup file, or customize it; it's in the Indent group. Do M-x customize
, then choose Editing, then Indent; alternatively, do M-x customize-group indent
.
As for indenting with tabs instead of spaces, all you have to do is set indent-tabs-mode
to t
. It's customizable the same way.