phpの標準はどうやらタブ4らしいので以下のようにしてみた。 ;; php-mode (add-hook 'php-mode-user-hook '(lambda () (setq-default tab-width 4) (setq indent-tabs-mode nil))) でもこれじゃなぜかタブ2にしかならない。原因を究明してやりなおし ;; php-mode (add-hook 'php-mode-user-hook '(lambda () (setq-default tab-width 4) (setq indent-tabs-mode nil) (setq c-basic-offset 4))) よくわからんけど、とりあえずタブが変な時はindent-levelかc-basic-offset辺りを見ればいいみたい。