[Top][All Lists]

[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
    '(("\\.\\(xsl\\|id\\[de\\]\\)\\'"                  . sgml-mode)
      ("\\.\\(plist\\|xml\\|xsl\\|fo\\)\\'"            . xml-mode)

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).



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

reply via email to

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