Date: Mon, 16 Oct 2006 17:19:47 -0600 From: cpghost <cpghost@cordula.ws> To: Svein Halvor Halvorsen <svein.h@lvor.halvorsen.cc> Cc: questions@freebsd.org Subject: Re: python-mode in emacs Message-ID: <20061016231947.GA25692@epia2.farid-hajji.net> In-Reply-To: <45340E01.5080709@lvor.halvorsen.cc> References: <45340E01.5080709@lvor.halvorsen.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061016231947.GA25692>