[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.
> "foobar.zone" 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)
auto-mode-alist))
(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.
http://sphinx.net.ru
む
- dns mode, Nachiket Gokhale, 2010/05/04
- Re: dns mode,
Dmitry Dzhus <=
- Re: dns mode, Kevin Rodgers, 2010/05/06
- Message not available
- Re: dns mode, Reiner Steib, 2010/05/07