[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs python-mode
From: |
Edward O'Connor |
Subject: |
Re: Emacs python-mode |
Date: |
Wed, 05 Jul 2006 23:28:52 -0700 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (darwin) |
Kevin Harriss wrote:
> Whenever I open emacs I get this error File mode specification error:
> (invalid-function (python-mode)).
Your error is here, where you frob `auto-mode-alist':
> (setq auto-mode-alist (append '(("\\.py$" python-mode))
> auto-mode-alist))
>From C-h f auto-mode-alist RET:
> Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL)
("\\.py$" python-mode) looks like (REGEXP FUNCTION), not (REGEXP . FUNCTION).
Try ("\\.py$" . python-mode) instead.
Ted
--
Edward O'Connor
hober0@gmail.com
Ense petit placidam sub libertate quietem.
- Emacs python-mode, Kevin Harriss, 2006/07/05
- Re: Emacs python-mode,
Edward O'Connor <=