Monday, April 5, 2010

Que Es La Candida Monilia Anbicans

Autocomplete in Emacs (2)




Note: This post explains how to install the new version (1.2) auto-complete extension for Emacs. The instructions to install the older version (1.0) are in the post in Emacs Autocomplete
.
In the past, I explained how to install version 1.0 of the extension
auto-complete for the GNU Emacs text editor . Now we see how to install this new version (these instructions are taken from here, in English). First you obviously need to download the extension. The latest stable version can be obtained at http://cx4a.org/software/auto-complete/ # Latest_Stable (you can also install a development version from git
, but will not explain how to do this post). At the time of writing the latest stable version is 1.2 and download the archive can be found at
http://cx4a.org/pub/auto-complete/auto-complete-1.2.tar.bz2 ( is indifferent to download the file. zip or. tar.bz2). Unpack the archive and move in
terminal with the command cd
in the folder you just unzipped. If for example, we unpacked the archive in ~ / Desktop (recall that the tilde ~ is an abbreviation of the location of the current user's home) we will have to move to the folder ~ / Scrivania/auto-complete-1.2 (in versions after 1.2 the folder name change, presumably) with the command
cd ~ / Scrivania/auto-complete-1.2
To install the extension simply give the command
emacs-batch - the etc / install.el Asked


Install to:


we enter the path of the folder in which to install the extension. Typically these extensions are installed into ~ /. Emacs.d , so in this case we just write ~ /. Emacs.d At this point, if the installation is successful, we will read the Message Successfully installed! Add The following code to your. Emacs:
(add-to-list 'load-path "~ /. Emacs.d)
(require' auto-complete-config) (add-to-list ' ac-dictionary-directory "~ / .emacs.d / ac-dict") (ac-config-default) order to use this extension we need to finally do what we are told to add strings to the file listed above ~ /. emacs. To do this we open that file (remember that the files and folders that have names beginning with the point are hidden
) with our favorite text editor (eg Emacs: D) and add at the end of the strings
(add-to-list 'load-path "~ /. emacs.d) (require' auto-complete-config) (add-to-list 'c-dictionary-directory" ~ /. emacs. d / ac-dict ") (ac-config-default) The first is to add the folder ~ /. emacs.d to the variable load-path , which contains the list of folders where searches the file to upload. If the variable already contains this folder will not need to add it again (in Emacs you can see the contents of the variable load-path with Ch v load-path RET ). If you had installed the old version
auto-complete it is convenient to remove the previously entered strings before adding new ones (although some are identical).

Now there is also a
site (in English) dedicated to this extension, with a rich
documentation that explains how to create new dictionaries, for example, certain major mode for Emacs.

0 comments:

Post a Comment