When I edit a PHP file, and when to type for example <?php I get the cursor moved to the lower buffer suggesting me to write an HTML tag instead:

enter image description here How to circumvent this issue?

1 Answer 1


This is for the same reason as https://emacs.stackexchange.com/a/44076/454

For writing pure PHP I highly recommend using https://github.com/emacs-php/php-mode

If you're writing mixed HTML/PHP files, then http://web-mode.org/ may be a better option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.