|
From: | Peter Dyballa |
Subject: | Re: How to associate more than two file-types as C code, code included |
Date: | Tue, 4 Dec 2007 13:59:28 +0100 |
Am 03.12.2007 um 23:50 schrieb Mike H:
I want the files .cu and .txx to be recognized as C files.. One block of the following codes works separately, but when I put them together.. it doesn't work. How should I do it ? when ((string-match "\\.cu$" fn) || (string-match "\\.txx$" fn))
I use or instead of the shell construct ||: (if (or (string-match "23.0.50" mEV) (string-match "22." mEV)) ... There is also the variable auto-mode-alist that you can modify like in: (add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode)) -- Greetings Pete "A mathematician is a machine that turns coffee into theorems."
[Prev in Thread] | Current Thread | [Next in Thread] |