Home > php教程 > php手册 > MAC emacs下安装php-mode,emacsphp-mode

MAC emacs下安装php-mode,emacsphp-mode

WBOY
Release: 2016-06-13 09:09:30
Original
1693 people have browsed it

MAC emacs下安装php-mode,emacsphp-mode

在某一个个页面(抱歉不记得了), 比较了三个配置,php-mode, php-mode-improved, xnhtml。

作者在比较后推荐xnhtml,但在xnthml官网下载链接一直显示403,真让人无语。

尝试安装php-mode-improved,下载后按照code里的说明就是配置不成功,(require 'php-mode) 我是放在lisp中的。

只能又转方向,安装php-mode, 在这个页面找到了http://melpa.org/#/getting-started。提示先将MELPA加入到package list中,对照着加入.emacs中,如下

<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安装即可。
Copy after login
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template