From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Robert L Knighten <RLK02@knighten.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to turn off conf-mode
Date: Wed, 12 Dec 2007 21:50:04 +0100 [thread overview]
Message-ID: <74267FDE-EBB7-41F6-9C4E-EF7983379469@Web.DE> (raw)
In-Reply-To: <86d4tcbe74.fsf@zeus.knighten.org>
Am 12.12.2007 um 07:49 schrieb Robert L Knighten:
> The problem is that it is not just one file, and the files are
> neither named
> nor constructed by me.
>
> I think the relevant dotted pair in auto-mode-alist is
>
> ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" .
> conf-mode)
>
> but I don't know what to do about it. I don't want to simply
> override this
> without understanding what else this will affect.
In my Emacsen .out files are not listed in the set of files for which
conf-mode should be applied. Or, to be more exact: this is my
interpretation of the lines and I cannot make .out files open in conf-
mode. So it's likely that you add something. To find out when it happens
1.) launch GNU Emacs with --no-init-file and open such a .out file
2.) launch GNU Emacs with --no-site-file and open such a .out file
In case 1 your personal .emacs or default.el is not loaded, only the
system's ones.
In case 2 the system's init file(s) is (are) not loaded, only your
personal one.
If in case 1 the .out file is opened in conf-mode, then the system's
init file(s) set(s) it.
If in case 2 the .out file is opened in conf-mode, then your personal
init file sets it.
If in case 1 and in case 2 the .out file is opened in conf-mode, then
both are polluted and you should launch GNU Emacs with -Q!
If your personal init file sets it, then it's easy to correct the
setting: delete the statement!
If your system's init file(s) set(s) it, then it's also easy to
correct the setting in your personal init file: remove the mapping
from the alist:
(remove '("<whatever>" . conf-mode) auto-mode-alist)
BTW, the reg-exp you're citation tells (most probably):
.cfg, .conf, .cnf, .config files are opened in conf-mode.
I don't understand the \\(?:\\.[a-zA-Z0-9._-]+\\) part – can it
really stand for *any* extension? If it's really that, then remove
the line cited from auto-mode-alist and add it in a changed form with
the reg-exp part I don't understand:
(add-to-list 'auto-mode-alist '("[/.]c\\(?:on\\)?f\\(?:i?g\\)\\'".
conf-mode))
--
Mit friedvollen Grüßen
Pete
This is a signature virus. Add me to your signature and help me to live
next prev parent reply other threads:[~2007-12-12 20:50 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
2007-12-12 6:49 ` Robert L Knighten
2007-12-12 20:50 ` Peter Dyballa [this message]
[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=74267FDE-EBB7-41F6-9C4E-EF7983379469@Web.DE \
--to=peter_dyballa@web.de \
--cc=RLK02@knighten.org \
--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.