mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Replace php+-mode with regular php-mode
It seems php+-mode has issues with latest trunk builds of Emacs 24.4.
This commit is contained in:
17
mode-customizations/php-mode.el
Normal file
17
mode-customizations/php-mode.el
Normal file
@@ -0,0 +1,17 @@
|
||||
(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)
|
||||
Reference in New Issue
Block a user