[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DocBook

From: Stefano Sabatini
Subject: Re: DocBook
Date: Tue, 29 Jun 2010 12:55:08 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

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))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]