Emacs auto-completion

Source: Internet
Author: User

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 ))))

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.