From: Lennart Borgman <lennart.borgman@gmail.com>
To: Thomas Lord <lord@emf.net>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: mode setting question
Date: Tue, 14 Jul 2009 22:50:19 +0200 [thread overview]
Message-ID: <e01d8a50907141350x6e136da9h1f9075023f001dac@mail.gmail.com> (raw)
In-Reply-To: <1247603229.5941.25.camel@dell-desktop.example.com>
On Tue, Jul 14, 2009 at 10:27 PM, Thomas Lord<lord@emf.net> 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".
next prev parent reply other threads:[~2009-07-14 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 20:27 mode setting question Thomas Lord
2009-07-14 20:50 ` Lennart Borgman [this message]
2009-07-15 0:47 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50907141350x6e136da9h1f9075023f001dac@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lord@emf.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).