Silence php-mode HTML warnings

php-mode 1.4.0 added warnings about mixing PHP and HTML. They pop up often, and I find them extremely annoying. Even when I’m printing HTML with echo, I get them. To silence them forever, add this to .emacs:

(add-hook 'php-mode-hook (lambda () (setq php-warned-bad-indent t)))

Leave a Reply