Emacs indent level global override

前端 未结 3 1618
挽巷
挽巷 2020-12-18 09:30

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

3条回答
  •  既然无缘
    2020-12-18 10:16

    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.

提交回复
热议问题