Home >Backend Development >PHP Tutorial >Install php-mode under MAC emacs, emacsphp-mode_PHP tutorial

Install php-mode under MAC emacs, emacsphp-mode_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:00:29924browse

Install php-mode and emacsphp-mode under MAC emacs

On a certain page (sorry I can’t remember), I compared three configurations, php-mode, php- mode-improved, 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.

The only option was to 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 /><br />可以使用m-x list-package,也可以使用options中的package管理器来安装php-mod.之后选择php-mode安装即可。

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/973823.htmlTechArticleInstall php-mode under MAC emacs, emacsphp-mode is on a certain page (sorry, I can’t remember), compare There are three configurations, php-mode, php-mode-improved, and xnhtml. The author recommends xnhtm after comparison...
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