From owner-freebsd-questions@FreeBSD.ORG Mon Oct 16 23:22:29 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 DB98F16A597 for ; Mon, 16 Oct 2006 23:22:29 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0998E43DB8 for ; Mon, 16 Oct 2006 23:22:00 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.139] (helo=anti-virus01-10) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1GZbmP-0000la-DR; Tue, 17 Oct 2006 00:21:57 +0100 Received: from [82.41.32.39] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1GZbmO-00073o-SC; Tue, 17 Oct 2006 00:21:56 +0100 Message-ID: <45341414.5010704@dial.pipex.com> Date: Tue, 17 Oct 2006 00:21:56 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Svein Halvor Halvorsen References: <45340E01.5080709@lvor.halvorsen.cc> In-Reply-To: <45340E01.5080709@lvor.halvorsen.cc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Mon, 16 Oct 2006 23:22:30 -0000 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/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. Make sure you environment does not set EMACSLOADPATH which would override compile-time defaults. hth, --Alex