Install php-mode and emacsphp-mode in MAC emacs
On a page (sorry, I can't remember), I compared three configurations: php-mode, php-mode-improved, and xnhtml.
The author recommended xnhtml after comparison, but the download link on the xnthml official website keeps showing 403, which is really speechless.
Try to install php-mode-improved. After the download, follow the instructions in the code that the configuration is unsuccessful. (require 'php-mode) I am in lisp.
You can only change the direction and install php-mode. on this page, find http://melpa.org/#/getting-started. The prompt is to add MELPA to the package list first, and add it to. emacs as follows:
(Require 'package); You might already have this line (add-to-list 'package-archivees' ("melpa ". "http://melpa.org/packages/") t) (when (<emacs-major-version 24 );; for important compatibility libraries like cl-lib (add-to-list 'package-archives '("gnu ". "http://elpa.gnu.org/packages/") (package-initialize); You might already have this line
You can use m-x list-package or the package manager in options to install php-mod. Then select php-mode for installation.