Automatic completion of Emacs under Windows

Source: Internet
Author: User

Emacs is an artifact, understand people naturally understand, but without any configuration of Emacs is very bad, especially when there is no automatic completion of the function, this is a lot of people give up Emacs and choose sublime and other easy-to-use editor reasons, Of course some people think that sublime is better than Emacs, with Emacs and vim just to install force, but the real Daniel only with Emacs and vim instead of using the IDE, but I am neither Daniel nor to install force, but simply like Emacs Tab key Settings, Used to feel that other editors are not good use, but in order to make Emacs more practical, but also to do a lot of assorted configuration, which I think the most important thing is automatic completion.

Why is the configuration under Windows, contact Emacs should not be under Linux, one of them is Linux slightly boring, do not want to cut back and forth system.

To configure Emacs, you need to know. Emcas this file,. Emacs is the configuration file for Emacs, enter Emacs to press ctrl+x+f and enter ~/.emacs to open the. emacs file, which may have an initial configuration file, then open the set Default font, just set a font, then save options, so there's an. emacs file.

First download the complete tool http://cx4a.org/pub/auto-complete/auto-complete-1.3.1.zip

Just unzip it to a path, like mine's D:\auto-complete-1.3.1\.

Then create a new folder where you want to install it, and the path is written down, like mine is D:\emacs-24.3\lisp\auto-complete-1.3.1.

1. Open Emacs To perform the installation, the operation is press Alt+x Load-file,

2. Enter the path to the installation file, which is the Install.el under the ETC folder.

3. Then you will be asked to enter the path you want to install, just write the location of the new folder,

4. In the buffer above, you will be prompted to copy a few lines of code into the. Emacs

5. After copying the past, you can restart Emacs.

Finally, attach my emacs configuration:

(Require ' molokai-theme) (Show-paren-mode 1) (Custom-set-variables ' (Show-paren-mode t)) (Custom-set-faces ' (Default (t (: Family "Courier New": Foundry "outline": Slant normal:weight normal:height 120:width Normal)))) (Switch-to-buffer buffer-file-name) (delete-other-windows) (setq inhibit-startup-message t) ( Scroll-bar-mode nil) (Setq-default indent-tabs-mode nil) (Setq-default C-basic-offset 4) (Setq-default tab-width 4) ( Require ' Linum) (Global-linum-mode) (Global-set-key [? \c-c? \c-c] ' comment-or-uncomment-region ')  (Add-to-list ') Load-path "D:/EMACS-24.3/LISP/AUTO-COMPLETE-1.3.1/") (Require ' auto-complete-config) (Add-to-list ') Ac-dictionary-directories "D:/emacs-24.3/lisp/auto-complete-1.3.1//ac-dict") (Ac-config-default)

  

  

  

Automatic completion of Emacs under Windows

Related Article

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.