Enable php+-mode, and adapt old php-mode customizations for it

This commit is contained in:
2012-08-05 18:56:35 +01:00
parent fe0d99d2f0
commit 48b21ea267
3 changed files with 7 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
(load-file (config-path "mode-customizations/lisp-mode.el"))
(load-file (config-path "mode-customizations/makefile-mode.el"))
(load-file (config-path "mode-customizations/markdown-mode.el"))
(load-file (config-path "mode-customizations/php-mode.el"))
(load-file (config-path "mode-customizations/php+-mode.el"))
(load-file (config-path "mode-customizations/python-mode.el"))
(load-file (config-path "mode-customizations/rhtml-mode.el"))
(load-file (config-path "mode-customizations/ruby-mode.el"))

View File

@@ -1,6 +1,6 @@
(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
(add-to-list 'auto-mode-alist '("\\.php\\'" . php+-mode))
(defun customizations-for-php-mode ()
(defun customizations-for-php+-mode ()
(interactive)
(setq whitespace-action (quote (auto-cleanup)))
(flyspell-prog-mode)
@@ -9,4 +9,4 @@
(auto-complete-mode)
(highlight-indentation-mode))
(add-hook 'php-mode-hook 'customizations-for-php-mode)
(add-hook 'php+-mode-hook 'customizations-for-php+-mode)

View File

@@ -133,6 +133,9 @@
;; Load fill-column-indicator
(require 'fill-column-indicator)
;; Load php+-mode
(require 'php+-mode)
;; Load Undo-Tree
(require 'undo-tree)