Home  >  Article  >  Backend Development  >  Install php-mode under MAC emacs

Install php-mode under MAC emacs

WBOY
WBOYOriginal
2016-08-08 09:27:241187browse

On a certain page (sorry I can’t remember), I compared three configurations, php-mode, php-mode-improved, and xnhtml.

The author recommends 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 downloading, follow the instructions in the code but the configuration is unsuccessful. (require 'php-mode) I put it in lisp.

I can only change direction and install php-mode. I found http://melpa.org/#/getting-started on this page. Tip: First add MELPA to the package list, and then add it to .emacs, as follows

<code>(require 'package) ;; You might already have this line
(add-to-list 'package-archives
             '("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</code><br>可以使用m-x list-package,也可以使用options中的package管理器来安装php-mod.之后选择php-mode安装即可。

The above introduces the installation of php-mode under MAC emacs, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn