Skip to content

Commit 328b912

Browse files
authored
Merge pull request #547 from emacs-php/trivial-refactors
Use add-hook instead of add-to-list and make-local-variable
2 parents e10b535 + a67801d commit 328b912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php-mode.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ After setting the stylevars run hooks according to STYLENAME
11011101
(setq-local font-lock-constant-face 'php-constant)
11021102

11031103
(setq-local syntax-propertize-function #'php-syntax-propertize-function)
1104-
(add-to-list (make-local-variable 'syntax-propertize-extend-region-functions)
1105-
#'php-syntax-propertize-extend-region)
1104+
(add-hook 'syntax-propertize-extend-region-functions
1105+
#'php-syntax-propertize-extend-region t t)
11061106

11071107
(setq imenu-generic-expression php-imenu-generic-expression)
11081108

0 commit comments

Comments
 (0)