python-mode in emacs

Alex Zbyslaw xfb52 at
Mon Oct 16 23:22:30 UTC 2006

Svein Halvor Halvorsen wrote:

>Emacs doesn't seem to load files in /usr/local/share/emacs/site-lisp
>installed by ports. E.g python-mode installs files in this directory,
>but python-mode is not available in emacs afterwards. I have to manually
>tell emacs to look in these files.
>Are there any way to get emacs to automatically read files in this
>directory? Am I missing something? Shouldn't the ports system by default
>be setup in a way that this would work?
My emacs compiled out of ports does look in that directory by default.

In emacs do "ESC-x describe-variable load-path" which tells you where 
emacs is looking.  Mine is

"/usr/local/share/emacs/site-lisp" "/usr/local/share/emacs/21.3/leim" 

and as you can see second entry is "/usr/local/share/emacs/site-lisp"

Assuming it is missing for you, then you could add something like this 
to your .emacs

(set-variable 'load-path (append '("/usr/local/share/emacs/site-lisp") 

but that sticks it at the end, so anything there won't override 
defaults, which is not so good.

Make sure you environment does not set EMACSLOADPATH which would 
override compile-time defaults.



More information about the freebsd-questions mailing list