[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to associate more than two file-types as C code, code included
From: |
Mike H |
Subject: |
Re: How to associate more than two file-types as C code, code included |
Date: |
Tue, 4 Dec 2007 09:27:52 -0800 (PST) |
User-agent: |
G2/1.0 |
On 12월4일, 오전7시59분, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> 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."
Thanks !