Files
.emacs.d/mode-customizations/php-mode.el
Jim Myhrberg 0130de4fe9 Replace php+-mode with regular php-mode
It seems php+-mode has issues with latest trunk builds of Emacs 24.4.
2013-10-20 17:56:38 +01:00

18 lines
478 B
EmacsLisp

(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
(defun customizations-for-php-mode ()
(interactive)
(setq whitespace-action (quote (auto-cleanup)))
(flyspell-prog-mode)
(linum-mode t)
(fci-mode)
(auto-complete-mode)
(subword-mode)
(setq php-basic-offset 2)
(setq tab-width 2)
(setq highlight-indentation-offset 2)
(highlight-indentation-mode)
(highlight-indentation-current-column-mode))
(add-hook 'php-mode-hook 'customizations-for-php-mode)