Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Try vi ~/.emacs (ducks) – Steven Monday Mar 28 '11 at 1:26
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

Your Answer


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.