Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2006 17:06:37 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Alex Zbyslaw <xfb52@dial.pipex.com>
Cc:        Svein Halvor Halvorsen <svein.h@lvor.halvorsen.cc>, questions@freebsd.org
Subject:   Re: python-mode in emacs
Message-ID:  <20061017140637.GB56234@gothmog.pc>
In-Reply-To: <45341414.5010704@dial.pipex.com>
References:  <45340E01.5080709@lvor.halvorsen.cc> <45341414.5010704@dial.pipex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-10-17 00:21, Alex Zbyslaw <xfb52@dial.pipex.com> wrote:
> Svein Halvor Halvorsen wrote:
> >Emacs doesn't seem to load files in /usr/local/share/emacs/site-lisp
> >installed by ports. [...]
>
> In emacs do "ESC-x describe-variable load-path" which tells you where 
> emacs is looking.  Mine is
> 
> ("/usr/local/share/emacs/21.3/site-lisp" 
> "/usr/local/share/emacs/site-lisp" "/usr/local/share/emacs/21.3/leim" 
> "/usr/local/share/emacs/21.3/lisp" 
> "/usr/local/share/emacs/21.3/lisp/toolbar" 
> "/usr/local/share/emacs/21.3/lisp/textmodes" 
> "/usr/local/share/emacs/21.3/lisp/progmodes" 
> "/usr/local/share/emacs/21.3/lisp/play" 
> "/usr/local/share/emacs/21.3/lisp/obsolete" 
> "/usr/local/share/emacs/21.3/lisp/net" 
> "/usr/local/share/emacs/21.3/lisp/mail" 
> "/usr/local/share/emacs/21.3/lisp/language" 
> "/usr/local/share/emacs/21.3/lisp/international" 
> "/usr/local/share/emacs/21.3/lisp/gnus" 
> "/usr/local/share/emacs/21.3/lisp/eshell" 
> "/usr/local/share/emacs/21.3/lisp/emulation" 
> "/usr/local/share/emacs/21.3/lisp/emacs-lisp" 
> "/usr/local/share/emacs/21.3/lisp/calendar")
> 
> 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") 
> load-path))
> 
> but that sticks it at the end, so anything there won't override 
> defaults, which is not so good.

FWIW, one way to add a path to the beginning of the `load-path' list is:

    (add-to-list 'load-path "/usr/local/share/emacs/site-lisp")

The `add-to-list' function can also append stuff to a list by:

    (add-to-list 'load-path "/usr/local/share/emacs/site-lisp" t)

See the documentation of `add-to-list' for more details :)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061017140637.GB56234>