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

后端 未结 5 866
广开言路
广开言路 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:03

    You're missing a (setq c-basic-indent 4). So you should have:

    ;; 4 spaces rather than tabs
    (setq-default indent-tabs-mode nil)
    (setq-default tab-width 4)
    (setq c-basic-offset 4)
    (setq c-basic-indent 4)
    

提交回复
热议问题