Saturday, December 5, 2009

Does Halle Berry Have A Weave




Note: In the post Autocomplete in Emacs (2)
explain how to install the new version of this extension, which offers more functionality than this.
In Emacs (the editor in real time, extensible, customizable self-documenting and visual) is a function of available auto
combination with M-/ (remember that the key
M, short for Meta, is usually the Alt or Esc). This combination, however, is quite awkward to use since they actually have to press 3 keys each time (ALT + SHIFT + 7, apparently the slash is not worth the possible numeric keypad), at least on Italian keyboards, and thus speeds up add little to the writing of a text or code. Being extensible Emacs text editor, someone has obviously done to create an extension that would allow to significantly increase the usefulness dell'autocompletamento. There are at least 2 or 3 extensions that make our case, I've tried one in particular, called Auto Complete.
As you can read the README file displayed on the main page of the project, to install this extension, simply run these commands in a terminal (the version of the program is likely to change than the one in this post, always refer to the README file on that site): git clone git
: / / auto-complete github.com/m2ym/auto-complete.git
cd git checkout v1.0 emacs-L. -Batch-f batch-byte-compile *. el *. el *. elc cp ~ /. Emacs.d / To follow this path is therefore necessary to have installed on your system
Git, the system distributed version control software developed by Linus Torvalds himself. The name of the package to be installed in Ubuntu for this program (if not already present), however, is not git, how it could (and should) wait but
git-core

because git refers to another program. Then just install from Synaptic
package git-core , or type in terminal command

sudo apt-get install git-core
After that you can run the commands listed above in order to install the 'Extended Auto Complete. Then, as explained in the file
self-complete.el
, add to the configuration file ~ /. emacs (I recall that the tilde ~ ) these lines: (require 'auto-complete) (require' auto-complete-config) (global-auto-complete-mode t) These are to load the necessary files and default mode is activated
global-auto-complete
. It could be a problem if the folder ~ /. Emacs.d is not present in the variable Emacs load-path. In fact, with the last command ( cp *. el *. elc ~ /. Emacs.d / ) you have copied all the files . and el
.
elc
folder ~ /. Emacs.d
but in this case, Emacs would not be able to upload these files at startup and display a message like this:

Warning (initialization): An error occurred while loading `/ home / USERN_NAME / .emacs':

File error: Can not open load file, auto-complete

TO ENSURE normal operation, You Should
investigated and remove the causes of the error in your initialization file. Start Emacs with the `- debug-init 'option to view a complete error backtrace. To remedy this, simply add the folder in question to the variable load-path putting this line in the file ~ /. emacs (before the lines indicated above, see here ): ( add-to-list 'load-path "~ /. emacs.d)
At this point the extension will be ready for use.
The procedure for adding a folder to the variable load-path may be necessary if you wish to add other extensions in other folders that are not "loaded" from Emacs. However, it is advisable to all custom extensions in a single folder, which can easily be different from ~ /. emacs.d (in this case do not forget to copy the file extension Auto Complete in the appropriate folder!).

0 comments:

Post a Comment