php-mode
php-mode copied to clipboard
Disable propertize
Hi
could you provide a way to disable "propertize" features ?
I do not want my comments to be propertized.
I would like also to disable php-phpdoc-font-lock-keywords
.
Best regards
Something like this?
(add-hook 'php-mode-hook #'my-php-mode-hook)
(defun my-php-mode-hook ()
"Custom `php-mode' behaviours. Used in `php-mode-hook'."
(setq-local syntax-propertize-function nil)
(remove-hook 'syntax-propertize-extend-region-functions
#'php-syntax-propertize-extend-region t))
(advice-add 'php-syntax-propertize-function :override #'ignore)
(setq php-phpdoc-font-lock-keywords nil)
Would it be possible to provide customs for this ?
That's up to the maintainers, but they probably have many higher priorities.
Does it work?
I already have solutions to disable this but I think that this kind of options should really be easily configurable
Perhaps you could provide your solutions up front when you post something like this, then?
(a) I wouldn't have wasted any time trying to help if you'd made it clear that you already knew what to do.
(b) You can help other people who might have the same question.
(c) If you want the maintainers to do something, and you show them what needs to be done in code form, you will probably improve your chances of them considering it.
I've checked my init.el and I only had the solution for the php-phpdoc-font-lock-keywords issue. I'll try to post a pull request for the "propertize" issue.