Home > Backend Development > PHP Tutorial > Install php-mode under MAC emacs

Install php-mode under MAC emacs

WBOY
Release: 2016-08-08 09:27:24
Original
1207 people have browsed it

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安装即可。
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template