Emacs for PHP

Dec222008
 

1.download php-mode.el from http://sourceforge.net/projects/php-mode/

2. copy php-mode.el to emacs/lisp/

3.byte compile php-mode.el file to get php-mode.elc file

command:  M-x byte-compile-file

4.add following lines to you .emacs file

(require ‘php-mode)

(add-to-list ‘auto-mode-alist ‘(“\\.module$” . php-mode))

(add-to-list ‘auto-mode-alist ‘(“\\.inc$” . php-mode))

(add-to-list ‘auto-mode-alist ‘(“\\.install$” . php-mode))

(add-to-list ‘auto-mode-alist ‘(“\\.engine$” . php-mode))

done! emacs is ready to support php.

try C-c C-f on built in php function

發佈了20 篇原創文章 · 獲贊 5 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章