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



_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to