-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable propertize #659
Comments
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. |
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
The text was updated successfully, but these errors were encountered: