PHP mode for emacs

1.ダウンロードし、以下に配置
/usr/share/emacs/site-lisp

2.elispコンパイル
emacsをsudoで起動

M-x byte-compile

で、ファイル指定

/usr/share/emacs/site-lisp/php-mode.el

3. .emacsに追記
(load-library "php-mode")
(require 'php-mode)
(autoload 'php-mode "php-mode")
(setq auto-mode-alist
(cons '("\\.php\\'" . php-mode) auto-mode-alist))
(setq php-mode-force-pear t)
(add-hook 'php-mode-hook
'(lambda ()
(define-key php-mode-map "\M-j" 'php-complete-function)
(define-key php-mode-map "\C-m" 'newline-and-indent)
(c-toggle-auto-hungry-state 1)
(setq php-manual-path "/usr/local/share/php/html")
(setq php-search-url "http://www.phppro.jp/")
(setq php-manual-url "http://www.phppro.jp/phpmanual")
))



Mule-UCS

1.apt-getでインストール

2. .emacsに追記
(require 'jisx0213)
(set-language-environment "Japanese")
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-clipboard-coding-system 'utf-8)




○入力補完ーリファレンス呼び出し
php-mode

入力補完:
M+j

リファレンス呼び出し
C+x C+f