My emacs--Configuration Memo

Source: Internet
Author: User

    • 2014/12/18~2014/12/20 intends to switch from vim to Emacs to start Emacs

When Emacs starts, it needs to load the initialization file.

When Emacs was started, it normally tries to load a Lisp program from an initialization file, or init file for short. This file, if it is exists, specifies how to initialize Emacs. Emacs looks for your init file using the filenames ~/.emacs , or; can choose to use any one of the ~/.emacs.el ~/.emacs.d/init.el these three NA Mes. Here, ~/ stands for your home directory.

(quoted from Emacs manual http://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html)

    • 2014/12/18-2014/12/25 Configuring Auto-completion

Main reference http://blog.csdn.net/winterttr/article/details/7524336. The following 4 source code packages are used

Https://github.com/auto-complete/auto-complete

Https://github.com/auto-complete/popup-el

Https://github.com/auto-complete/fuzzy-el

Https://github.com/winterTTr/emacs-of-winterTTr/blob/master/.emacs.d/plugins/auto-complete-suite/pos-tip/pos-tip.el

Download the 4 source code packages mentioned above, put the. emacs.d/directory, and then add the configuration in Init.el:

(Add-to-list ' Load-path "~/.emacs.d/fuzzy-el-0.1")
(Add-to-list ' Load-path "~/.emacs.d/auto-complete-1.4.0")
(Add-to-list ' Load-path "~/.emacs.d/popup-el-0.5.2")
(Add-to-list ' Load-path "~/.emacs.d/pos-tip")
(Require ' auto-complete-config)
(Add-to-list ' ac-dictionary-directories
"~/.emacs.d/auto-complete-1.4.1/auto-complete/dict")
(Ac-config-default)
;; Fuzzy function
(setq ac-fuzzy-enable T)
;; Enhanced Popup List
(Require ' Pos-tip)

Last night after these operations, automatic completion of the function appeared, just according to the current file to do the completion.
(setq ac-quick-help-prefer-pos-tip t);d Efault is t

    • 2014/12/18-2014/12/25 Configuration Yasnippets

1. Install the yasnippets, the main reference https://github.com/capitaomorte/yasnippet/. The installation method of "Install the most recent version" was adopted.

2. Yasnippet after installation, in its root is a snippets directory, 1 in the Yasnippets said, Andreacrotti-snippet snippets put in this directory can be. However, after I opened https://github.com/AndreaCrotti/yasnippet-snippets/this, according to the statement here, put Andreacrotti-snippet directly to. emacs.d/Down, And then add it in Init.el:

(Add-to-list ' yas/root-directory "~/.emacs.d/snippets")
(yas--initialize)

Note that Git is written (yas/initialize), but this does not make sense in the development machine environment, refer to Http://stackoverflow.com/questions/13165967/installing-yasnippet, Changed into--

3. A good snippets can be collected into this snippets.

    • 2014/12/18-2014/12/25 Configuration Emacs+eclim+eclipse+emacs-eclim

These configurations address the only hints that Java can be used under Emacs, which is the ability to use a series of Java development features that Eclipse has. Eclim is a service that is written specifically for VIM using the Eclipse feature, which accepts some commands and sends these commands to eclipse for execution so that we can use these Java development features in Vim. These development features can also be enjoyed under Emacs, and we manipulate eclim by Emacs-eclim this plugin, so that Eclim+emacs-eclim together as a bridge between Emacs and Eclipse.

1. Install Eclipse. Download the latest luna,4.4.x version of Eclipse here to HTTP://WWW.ECLIPSE.ORG/DOWNLOADS/PACKAGES/ECLIPSE-IDE-JAVA-DEVELOPERS/JUNOSR1. After downloading, unzip it at the root of your own, even if it is installed.

2. Install the Eclim. Refer to the http://eclim.org/install.html instructions.

I tried two installation methods: the jar package installation and the source code compilation installation. 2.4.0 version requires jdk1.7, either the jar or source code compilation installation has an error: The distribution packet dependency is missing. Then start experimenting with lower versions, both jar and source code compilation. The final jar can be installed with 2.3.4 and the following versions, and the source code looks like the development and ant on it is not appropriate, and always compiles.

The jar package can be found in the meaning of source ' forge, and will be directed to sourceforge related pages when retrieved from Google.

The source code can be obtained from GitHub: https://github.com/ervandew/eclim/releases. The source code basically and jar package can correspond, except 2.3.1 version.

3. Install the Emacs-eclim. Refer to Https://github.com/senny/emacs-eclim. Note The paths in the installation directory and configuration must correspond.

When you do this, a smart hint will appear when you open the Java Project for development. The more extreme experience needs to be further discovered, which is just a start.

My emacs--Configuration Memo

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.