From: Edward O'Connor <hober0@gmail.com>
Subject: Re: Emacs python-mode
Date: Wed, 05 Jul 2006 23:28:52 -0700 [thread overview]
Message-ID: <m2zmfnz1p7.fsf@roisin.local> (raw)
In-Reply-To: 1152064745.13034.16.camel@localhost.localdomain
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.
prev parent reply other threads:[~2006-07-06 6:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-05 1:59 Emacs python-mode Kevin Harriss
2006-07-06 6:28 ` Edward O'Connor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2zmfnz1p7.fsf@roisin.local \
--to=hober0@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).