diff options
| author | Simeon Simeonov | 2018-02-26 11:05:25 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-02-26 11:05:25 +0100 |
| commit | 4ddaeb8e216f5b4ab1579b433ed0dbae78c2933a (patch) | |
| tree | c91398b0fd5a2f01941e5b31b4e7f36863715363 /.emacs.d/lisp | |
| parent | 1e6b143b8949e09c1231f860a7d9662010b7cb75 (diff) | |
Update php-mode
Diffstat (limited to '.emacs.d/lisp')
| -rw-r--r-- | .emacs.d/lisp/php-mode.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index d568d90..629c974 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el | |||
| @@ -65,8 +65,9 @@ | |||
| 65 | ;;; Code: | 65 | ;;; Code: |
| 66 | 66 | ||
| 67 | (require 'cc-mode) | 67 | (require 'cc-mode) |
| 68 | (require 'cc-langs) | ||
| 69 | |||
| 68 | (eval-when-compile | 70 | (eval-when-compile |
| 69 | (require 'cc-langs) | ||
| 70 | (require 'cc-fonts)) | 71 | (require 'cc-fonts)) |
| 71 | 72 | ||
| 72 | ;; Boilerplate from other `cc-mode' derived modes. See | 73 | ;; Boilerplate from other `cc-mode' derived modes. See |
| @@ -485,11 +486,7 @@ SYMBOL | |||
| 485 | php nil) | 486 | php nil) |
| 486 | 487 | ||
| 487 | (c-lang-defconst c-before-font-lock-functions | 488 | (c-lang-defconst c-before-font-lock-functions |
| 488 | php (let (functions) | 489 | php (c-get-lang-constant 'c-before-font-lock-functions nil t)) |
| 489 | (when (fboundp #'c-change-expand-fl-region) | ||
| 490 | (cl-pushnew 'c-change-expand-fl-region functions)) | ||
| 491 | (when (fboundp #'c-depropertize-new-text) | ||
| 492 | (cl-pushnew 'c-depropertize-new-text functions)))) | ||
| 493 | 490 | ||
| 494 | ;; Make php-mode recognize opening tags as preprocessor macro's. | 491 | ;; Make php-mode recognize opening tags as preprocessor macro's. |
| 495 | ;; | 492 | ;; |
