File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1202,10 +1202,11 @@ After setting the stylevars run hooks according to STYLENAME
1202
1202
; ; Since it depends on the timing at which the file local variable is set.
1203
1203
; ; File local variables are set after initialization of major mode except `run-hook' is complete.
1204
1204
(if php-mode-enable-project-coding-style
1205
- (add-hook 'hack-local-variables-hook #'php-mode-set-style-delay t t )
1206
- (setq php-mode--delayed-set-style t )
1207
- (when (fboundp 'advice-add )
1208
- (advice-add #'c-set-style :after #'php-mode--disable-delay-set-style '(local)))
1205
+ (progn
1206
+ (add-hook 'hack-local-variables-hook #'php-mode-set-style-delay t t )
1207
+ (setq php-mode--delayed-set-style t )
1208
+ (when (fboundp 'advice-add )
1209
+ (advice-add #'c-set-style :after #'php-mode--disable-delay-set-style '(local))))
1209
1210
(php-set-style (symbol-name php-mode-coding-style)))
1210
1211
1211
1212
(when (or php-mode-force-pear
You can’t perform that action at this time.
0 commit comments