I can't find this: How do I use 4 SPACES instead of a TAB in EMACS?

后端 未结 5 821
广开言路
广开言路 2021-01-05 21:40

I am making the jump to EMACS, and I can\'t find what I need to do in my .emacs file to get php-mode AND all other modes to insert 4 spaces instead of

5条回答
  •  抹茶落季
    2021-01-05 22:06

    You can use M-x untabify to convert all tabs to spaces.

    Well in that case you can set the value of indent-tabs-mode to nil for your php minor mode.

    You may also find the wiki: http://www.fnal.gov/docs/products/emacs/emacs/emacs_23.html#SEC185 and Jamie Zawinski's post: http://www.jwz.org/doc/tabs-vs-spaces.html to be informative.

提交回复
热议问题