unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: roberto.bernetti@poste.it
Cc: help-gnu-emacs@gnu.org
Subject: Re: File mode specification error: (invalid-regexp "Invalid regular expression")
Date: Sat, 26 Jul 2008 20:36:41 +0200	[thread overview]
Message-ID: <272447EE-C878-4BA9-80E5-AB5D0F222570@Web.DE> (raw)
In-Reply-To: <200807261642.32406.roberto.bernetti@poste.it>


Am 26.07.2008 um 16:42 schrieb Roberto Bernetti:

> (setq auto-mode-alist
>      (cons '("\\.mc$" . maxima-mode) auto-mode-alist))
> (setq auto-mode-alist
>      (cons '("\\.mx$" . maxima-mode) auto-mode-alist))


``$´´ stands for end of line, ``'´´ means end of word or string. This  
can make a difference with:

	emacs <file1.mc> <file2.mx>


You could simplify (really?) these lines to:

	(setq auto-mode-alist
	     (cons '("\\.m\\(c\\|x\\)\\'" . maxima-mode) auto-mode-alist))

--
Greetings

   Pete
                       ~  o
                        ~_\\_/\
                       ~  O   O






  reply	other threads:[~2008-07-26 18:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-26 14:42 File mode specification error: (invalid-regexp "Invalid regular expression") Roberto Bernetti
2008-07-26 18:36 ` Peter Dyballa [this message]
     [not found] <mailman.15448.1217089300.18990.help-gnu-emacs@gnu.org>
2008-07-26 16:50 ` Pascal J. Bourguignon
2008-07-26 16:55 ` Cor Gest

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=272447EE-C878-4BA9-80E5-AB5D0F222570@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=roberto.bernetti@poste.it \
    /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).