[Top][All Lists]

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

Re: dns mode

From: Dmitry Dzhus
Subject: Re: dns mode
Date: Thu, 22 Apr 2010 00:49:18 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Nachiket Gokhale wrote:
> It appears that I cannot save files with the extension "zone" e.g.
> "" because emacs has loaded something called dns-mode by
> default. How do I turn this thing off? What change do I have to make
> to my .emacs.d/init.el file?

Emacs associates file extensions and major modes by looking into
`auto-mode-alist` variable, you can clean all `.zone`-matching entries
from it if you don't want Emacs to turn on DNS mode when editing such files:

    (setq auto-mode-alist (delete '("\\.\\(soa\\|zone\\)\\'" . dns-mode) 
    (setq auto-mode-alist (delete '("\\.zone\\'" . zone-mode) auto-mode-alist))

You may get more information by reading section 27.1 of GNU Emacs manual
(«How Major Modes are Chosen»).
Happy Hacking.

reply via email to

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