help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding extensions to cc-mode


From: Peter Dyballa
Subject: Re: adding extensions to cc-mode
Date: Mon, 22 Aug 2005 21:16:41 +0200


Am 22.08.2005 um 18:07 schrieb kgold:

The extra quotes might work, but mine looks like:

(setq auto-mode-alist
      (append '(
                ("\\.[Ss]$"     . asm-mode)
                ("\\.68k$"      . asm-mode)
                ("\\.inc$"      . asm-mode)
                ("\\.[bB][aA][tT]$"   . bat-mode)
                ("\\.x$"        . c-mode)
                ) auto-mode-alist))


And mine looks more like:

(setq auto-mode-alist
  (append
    '(("\\.\\(xsl\\|id\\[de\\]\\)\\'"                  . sgml-mode)
      ("\\.\\(plist\\|xml\\|xsl\\|fo\\)\\'"            . xml-mode)
   auto-mode-alist)))

Please notice the different use of parentheses! \\' is exactly matching a string's end. $ isn't that exact (I don't remember the exact reason).

--
Greetings

  Pete

From error to error, one discovers the entire truth.
-Sigmund Freud





reply via email to

[Prev in Thread] Current Thread [Next in Thread]