Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "emacs load-path"?

Tags:

emacs

elisp

I want to change my emacs source code theme. They say in emacswiki that I have to add the .el file in a directory in my load-path, but what is my load-path? And how do I access it?

like image 852
Ruben Van St Aden Avatar asked Apr 28 '11 14:04

Ruben Van St Aden


People also ask

How do I import files into Emacs?

To load an Emacs Lisp file, type M-x load-file . This command reads a file name using the minibuffer, and executes the contents of that file as Emacs Lisp code. It is not necessary to visit the file first; this command reads the file directly from disk, not from an existing Emacs buffer.

What does require do in Emacs?

If you require a library repeatedly, it will load the library once (at most -- and not at all if the library had already been loaded).


1 Answers

Take a look at the Load Path page on emacswiki: http://www.emacswiki.org/emacs/LoadPath

Basically, you want to add the directory like so:

(add-to-list 'load-path "~/emacs-load-path")
like image 68
Brigham Avatar answered Sep 25 '22 06:09

Brigham