Here, I would like to thank "Tudou" for providing the address of a Japanese emacser blog website. Where can I see the detailed configuration? I also configured it according to the steps and the result was successful. But it still needs to be improved, which is awkward,
Know the website for this configuration: http://d.hatena.ne.jp/IMAKADO jump
First download the file and put it in a path. I put it in ~ /. Emacs. d/PHP/below
Wget http://www.emacswiki.org/cgi-bin/wiki/download/install-elisp.el
Load the file to the configuration file.
(Add-to-list 'Load-path "~ /. Emacs. d/PHP /")
(Require 'Install-elisp)
(Setq install-elisp-repository-directory "~ /. Emacs. d/PHP/"); sets the path of the downloaded files using Install-elisp-from-emacswiki. I put them in a folder.
Then use M-X to get and download the relevant file, regardless of what it will do, because we have set the download path and will automatically download it to that path folder. (* Note: After pagename is input, it will automatically open. You need to execute c-c for compilation .)
M-X:
Install-elisp-from-emacswiki
Pagename:
Anything. El
M-X:
Install-elisp-from-emacswiki
Pagename:
Anything-match-plugin.el
M-X:
Install-elisp-from-emacswiki
Pagename:
Auto-complete.el
; After completion, add the code in. emacs:
(Locate-library "auto-complete.el ")
; And then reload the. emacs file. As with the above operations, we can compile the PHP configuration file.
M-X:
Install-elisp-from-emacswiki
Pagename:
Php-completion.el
; PHP automatic prompt settings
(Add-hook 'php-mode-hook
(Lambda ()
(Require 'php-completion)
(PHP-completion-mode t)
(Define-key PHP-mode-map (KBD "c-o") 'phpcmp-complete )))
(Add-hook 'php-mode-hook
(Lambda ()
(When (require 'auto-complete nil T)
(Make-variable-buffer-local 'ac-sources)
(Add-to-list 'ac-sources 'ac-source-PHP-completion)
; If you like patial match,
; Use 'ac-source-PHP-completion-patial' instead of 'ac-source-PHP-completion '.
(Add-to-list 'ac-sources 'ac-source-PHP-completion-patial)
(Auto-complete-mode t ))))