From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to turn off conf-mode
Date: Tue, 11 Dec 2007 14:36:51 GMT [thread overview]
Message-ID: <7gx7j.3438$1j1.1971@newsfe7-gui.ntli.net> (raw)
In-Reply-To: 86wsrlivfu.fsf@zeus.knighten.org
On Mon, 10 Dec 2007 22:42:29 -0800, Robert L Knighten wrote:
> How do I turn off conf-mode in a buffer? Even more how do I make sure
> it doesn't start in a buffer? I opened a simple text file named cf.out
> and was horrified to discover the mode is (Conf[Unix]) rather (Text
> Fill) as I expected. The problem appears to be the name cf, but I
> haven't been able to find how that is forcing the mode.
To "turn off" any mode, you just switch to another mode, so in your case,
you'd want M-x text-mode (and possibly also M-x auto-fill-mode).
For doing this in general, you need to look at auto-mode-alist, which I
don't know enough about to be able to help you much. But frankly, if it's
just one file you may as well just do it by hand each time or maybe place
this:
-*- text -*-
In the first line of the file, which is a magic command to tell emacs to
open the file in text-mode.
To check whether things like your auto-mode-alist or the above -*- thing
are working, a nice trick is M-x revert-buffer which pretends it's
opening the file from scratch and rechooses its major mode.
Rupert
next prev parent reply other threads:[~2007-12-11 14:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 6:42 How to turn off conf-mode Robert L Knighten
2007-12-11 14:36 ` Rupert Swarbrick [this message]
2007-12-12 6:49 ` Robert L Knighten
2007-12-12 20:50 ` Peter Dyballa
[not found] ` <mailman.4948.1197492613.18990.help-gnu-emacs@gnu.org>
2007-12-12 21:31 ` Sven Joachim
2007-12-12 22:14 ` Peter Dyballa
2007-12-13 5:10 ` Robert L Knighten
2007-12-15 4:35 ` Kevin Rodgers
[not found] ` <mailman.5051.1197783054.18990.help-gnu-emacs@gnu.org>
2007-12-16 8:33 ` Robert L Knighten
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='7gx7j.3438$1j1.1971@newsfe7-gui.ntli.net' \
--to=rswarbrick@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.