tags:

views:

158

answers:

2

I've placed 2 plugins in different directories (according to their docs instructions).

One is in C:\Documents and Settings\Alex.AUTOINSTALL.001\Application Data\.emacs.d (the plugin is yasnippet-0.6.1c).

I placed the second in D:\Program Files\emacs-23.1\site-lisp (the plugin is color-theme).

I think its a bit confusing to place plugins in different directories. It is possible to place them in only one directory? or because of the 'nature' of those plugins they must be placed in those separated directories?

+5  A: 

You may put your elisp files wherever it's convenient for you, as long as the directories you use for this purpose are on your load-path. For example, I have this line in my ~/.emacs file:

(add-to-list 'load-path "~/.emacs.d/autoload")

And most of my extra elisp resides there. (I've also got separate directories for larger apps.)

On Windows, you'll be putting something similar in your _emacs file.

Michał Marczyk
Thanks! A last question. Do I have to write '(add-to-list 'load-path "~/.emacs.d/autoload")' in every plugin or just once per .emacs file
janoChen
Once per folder, so if everything goes in autoload, then you only need it once. I end up with one per large package, that wants its own folder...
Brian Postow
A: 

Similar to Michal, I suggest having a folder, next to your .emacs file (wherever that is) and in there, you can have sub-folders for whatever local elisp you need. I use a folder called ~/elithp (I thought it was funny 17 years ago when I started it B-)

Also, things will often want to be put in /usr/local/share/emacs/site-lisp or some equivalent, if they are not user specific.

I'm not exactly sure what the Windows equivalent locations are...

Brian Postow
God 17 years. I just started 2 weeks ago I feel so newbie.
janoChen
You'll get there. Emacs has a steep learning curve, but (IMHO) it's worth it...
Brian Postow