From owner-freebsd-questions@FreeBSD.ORG Mon Oct 16 23:19:06 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 2D56C16A4C9 for ; Mon, 16 Oct 2006 23:19:06 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 966DD43D4C for ; Mon, 16 Oct 2006 23:19:05 +0000 (GMT) (envelope-from cpghost@cordula.ws) Received: from epia2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id B2B40DE35D; Tue, 17 Oct 2006 01:13:53 +0200 (CEST) Date: Mon, 16 Oct 2006 17:19:47 -0600 From: cpghost To: Svein Halvor Halvorsen Message-ID: <20061016231947.GA25692@epia2.farid-hajji.net> References: <45340E01.5080709@lvor.halvorsen.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45340E01.5080709@lvor.halvorsen.cc> User-Agent: Mutt/1.5.11 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:19:06 -0000 On Tue, Oct 17, 2006 at 12:56:01AM +0200, 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. Well, it doesn't cause any harm to add to your ~/.emacs ;; Add python-mode (autoload 'python-mode "python-mode" "Python editing mode." t) (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (add-hook 'python-mode-hook 'turn-on-font-lock) > 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? I don't know. But having Emacs auto-load every mode from there doesn't seem a good idea. And the port can't do that either, since it's a per-user decision. > Svein Halvor Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/