Skip to content

Commit 9911d8c

Browse files
committed
Add custom variable php-mode-enable-project-coding-style
This variable controls enabling of style sets with directory/file local variables.
1 parent 738ce16 commit 9911d8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

php-mode.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ This variable can take one of the following symbol values:
383383
(set-default sym value)
384384
(php-set-style (symbol-name value))))
385385

386+
(defcustom php-mode-enable-project-coding-style t
387+
"When set to true override php-mode-coding-style by php-project-coding-style.
388+
389+
If you want to suppress styles from being overwritten by directory / file
390+
local variables, set NIL."
391+
:type 'boolean)
392+
386393
(defun php-mode-version ()
387394
"Display string describing the version of PHP Mode."
388395
(interactive)

0 commit comments

Comments
 (0)