From a67801d594c119ff7039a21cad30bf635f0db53a Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Sun, 23 Jun 2019 13:05:04 +0900 Subject: [PATCH] Use add-hook instead of add-to-list and make-local-variable --- php-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php-mode.el b/php-mode.el index bd26ea4c..3559729b 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1101,8 +1101,8 @@ After setting the stylevars run hooks according to STYLENAME (setq-local font-lock-constant-face 'php-constant) (setq-local syntax-propertize-function #'php-syntax-propertize-function) - (add-to-list (make-local-variable 'syntax-propertize-extend-region-functions) - #'php-syntax-propertize-extend-region) + (add-hook 'syntax-propertize-extend-region-functions + #'php-syntax-propertize-extend-region t t) (setq imenu-generic-expression php-imenu-generic-expression)