|
From: | Peter Dyballa |
Subject: | Re: File mode specification error: (invalid-regexp "Invalid regular expression") |
Date: | Sat, 26 Jul 2008 20:36:41 +0200 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |