[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mode setting question
From: |
Lennart Borgman |
Subject: |
Re: mode setting question |
Date: |
Tue, 14 Jul 2009 22:50:19 +0200 |
On Tue, Jul 14, 2009 at 10:27 PM, Thomas Lord<address@hidden> wrote:
>
> I would like to set the mode AS IF the visited
> file name were "hw.c", without that actually being
> the visited file name. That is, if the contents
> include automode foo within the buffer, use that.
> If not, consult the auto-mode-alist using hw.c
> and use that.
>
> What is the clean way to do so?
Ask here ;-)
This is a thing I have asked for several times. The code in
normal-mode should be broken up so that it is possible to ask "what
mode is the normal modes for files named nn.ext".