Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In this article, I don't understand step 7:

7. Add (load-library “init_python”) in your .emacs

How can I do this?

share|improve this question
1  
Try vi ~/.emacs (ducks) –  Steven Monday Mar 28 '11 at 1:26
add comment

1 Answer

up vote 6 down vote accepted

To quote the Emacs manual on The Init File:

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

Originally, Emacs looked only for ~/.emacs. The variant names were introduced in more recent versions of Emacs.

So, in this case:

Type C-x C-f ~/.emacs <ENTER> to load or create your .emacs file.

Type (load-library “init_python”) into that file.

Type C-x C-s to save it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.