I just started playing about with emacs yesterday for a project I’m working on. Anyway, i’ve started using the nxhtml-mumamo for web dev work and have got everything working alright except for when an HTML attribute contains is written as such…
<element attribute="<?= _ID ?>"></element>
… which invalidates the source.
I’ve found that enabling mumamo-alt-php-tags-mode sorts this problem, and now I’m looking at how to automatically execute this whenever a .php / .html file is opened. I know that this is done through my ~/.emacs file, however as I’m already executing nxhtml-mumamo when opening this file I’m not sure how to run another function.
Any help?
Cheers in advance.
Something like this:
This will cause all buffers in
nxhtml-mumamo-modeto also be in themumamo-alt-php-tags-mode, if you want to restrict it to just.htmland.phpbuffers, you’d add something a little more involved like this: