2

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

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

How can I do this?

1
  • 1
    Try vi ~/.emacs (ducks) Mar 28, 2011 at 1:26

1 Answer 1

6

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .