mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Enable php+-mode, and adapt old php-mode customizations for it
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -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)
|
||||
@@ -133,6 +133,9 @@
|
||||
;; Load fill-column-indicator
|
||||
(require 'fill-column-indicator)
|
||||
|
||||
;; Load php+-mode
|
||||
(require 'php+-mode)
|
||||
|
||||
;; Load Undo-Tree
|
||||
(require 'undo-tree)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user