Skip to content
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

Add php-mode-maybe for auto-mode-alist #483

Closed
wants to merge 3 commits into from
Closed

Add php-mode-maybe for auto-mode-alist #483

wants to merge 3 commits into from

Conversation

zonuexe
Copy link
Member

@zonuexe zonuexe commented Sep 18, 2018

zonuexe and others added 3 commits September 14, 2018 10:11
The new function `php-mode-maybe` is wrapper for auto-mode-alist that
invokes another function that is not php-mode under certain conditions.

One of them is the Bladetemplate.  This file generally has .blade.php
extension, but it can not be edited in php-mode.  Fortunately web-mode
supports Blade templates.  When web-mode is not installed in Emacs,
simply announce warn and notify the user that php-mode is not suitable
for editing the blade file.
Use 'php-mode-maybe instead of 'php-mode.
Invoke php-mode or the appropriate major mode when open the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant