From owner-freebsd-questions@FreeBSD.ORG Tue Oct 17 14:06:38 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A8416A403 for ; Tue, 17 Oct 2006 14:06:38 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44FDF43D53 for ; Tue, 17 Oct 2006 14:06:24 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id k9HE629x009051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 17 Oct 2006 17:06:03 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.8/8.13.8) with ESMTP id k9HE6dkh067828; Tue, 17 Oct 2006 17:06:39 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.8/8.13.8/Submit) id k9HE6bWF067827; Tue, 17 Oct 2006 17:06:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 17 Oct 2006 17:06:37 +0300 From: Giorgos Keramidas To: Alex Zbyslaw Message-ID: <20061017140637.GB56234@gothmog.pc> References: <45340E01.5080709@lvor.halvorsen.cc> <45341414.5010704@dial.pipex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45341414.5010704@dial.pipex.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.592, required 5, AWL -0.19, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Svein Halvor Halvorsen , questions@freebsd.org Subject: Re: python-mode in emacs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2006 14:06:38 -0000 On 2006-10-17 00:21, Alex Zbyslaw 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 :)