Skip to content

Commit 5edaae6

Browse files
committed
Remove php-mode-custom-coding-style-set called when custom variable is set
Since styles are set explicitly at the time of initialization of major mode, hacking of custom variables is no longer necessary.
1 parent 3df45ee commit 5edaae6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

php-mode.el

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,8 @@ This variable can take one of the following symbol values:
375375
(const :tag "WordPress" wordpress)
376376
(const :tag "Symfony2" symfony2)
377377
(const :tag "PSR-2" psr2))
378-
:set 'php-mode-custom-coding-style-set
379378
:initialize 'custom-initialize-default)
380379

381-
(defun php-mode-custom-coding-style-set (sym value)
382-
(when (eq major-mode 'php-mode)
383-
(set sym value)
384-
(set-default sym value)
385-
(php-set-style (symbol-name value))))
386380

387381
(defcustom php-mode-enable-project-coding-style t
388382
"When set to true override php-mode-coding-style by php-project-coding-style.

0 commit comments

Comments
 (0)