* DocBook
@ 2010-06-29 10:17 Klaus Jantzen
2010-06-29 10:22 ` DocBook Richard Riley
2010-06-29 10:55 ` DocBook Stefano Sabatini
0 siblings, 2 replies; 3+ messages in thread
From: Klaus Jantzen @ 2010-06-29 10:17 UTC (permalink / raw)
To: emacs-list
Hello,
I have two identical docbook files, one with extension .docbook the
other with extension .dbk.
When I open the .docbook file emacs automatically goes into sgml-mode;
when opening
the .dbk file it does not.
What do I have to change so that emacs also switches to sgml-mode when
the file has a .dbk extension?
I am using emacs 22.2. under Debian Lenny.
Thanks.
--
K.D.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DocBook
2010-06-29 10:17 DocBook Klaus Jantzen
@ 2010-06-29 10:22 ` Richard Riley
2010-06-29 10:55 ` DocBook Stefano Sabatini
1 sibling, 0 replies; 3+ messages in thread
From: Richard Riley @ 2010-06-29 10:22 UTC (permalink / raw)
To: help-gnu-emacs
Klaus Jantzen <k.d.jantzen@t-online.de> writes:
> Hello,
>
> I have two identical docbook files, one with extension .docbook the
> other with extension .dbk.
> When I open the .docbook file emacs automatically goes into sgml-mode;
> when opening
> the .dbk file it does not.
>
> What do I have to change so that emacs also switches to sgml-mode when
> the file has a .dbk extension?
>
> I am using emacs 22.2. under Debian Lenny.
>
> Thanks.
http://www.emacswiki.org/emacs/AutoModeAlist
r.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DocBook
2010-06-29 10:17 DocBook Klaus Jantzen
2010-06-29 10:22 ` DocBook Richard Riley
@ 2010-06-29 10:55 ` Stefano Sabatini
1 sibling, 0 replies; 3+ messages in thread
From: Stefano Sabatini @ 2010-06-29 10:55 UTC (permalink / raw)
To: help-gnu-emacs
On date Tuesday 2010-06-29 12:17:34 +0200, Klaus Jantzen wrote:
> Hello,
>
> I have two identical docbook files, one with extension .docbook the
> other with extension .dbk.
> When I open the .docbook file emacs automatically goes into
> sgml-mode; when opening
> the .dbk file it does not.
>
> What do I have to change so that emacs also switches to sgml-mode
> when the file has a .dbk extension?
Check the auto-mode-alist variable.
You can edit it this way:
(add-to-list 'auto-mode-alist '(".*\\.\\(dbk\\|docbook\\)\\'" . sgml-mode))
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-29 10:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 10:17 DocBook Klaus Jantzen
2010-06-29 10:22 ` DocBook Richard Riley
2010-06-29 10:55 ` DocBook Stefano Sabatini
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.