Function: dns-mode
dns-mode is an autoloaded, interactive and byte-compiled function
defined in dns-mode.el.gz.
Signature
(dns-mode)
Documentation
Major mode for viewing and editing DNS master files.
This mode is derived from text mode. It adds syntax
highlighting, and some commands for handling DNS master files.
Its keymap inherits from text-mode and it has the same
variables for customizing indentation. It has its own abbrev
table and its own syntax table.
Turning on DNS mode runs dns-mode-hook.
C-c C-e dns-mode-ipv6-to-nibbles
C-c C-s dns-mode-soa-increment-serial
Probably introduced at or before Emacs version 22.1.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/dns-mode.el.gz
;; Mode.
;;;###autoload
(define-derived-mode dns-mode text-mode "DNS"
"Major mode for viewing and editing DNS master files.
This mode is derived from text mode. It adds syntax
highlighting, and some commands for handling DNS master files.
Its keymap inherits from `text-mode' and it has the same
variables for customizing indentation. It has its own abbrev
table and its own syntax table.
Turning on DNS mode runs `dns-mode-hook'."
(setq-local comment-start ";")
(setq-local comment-end "")
(setq-local comment-start-skip ";+ *")
(setq-local font-lock-defaults
'(dns-mode-font-lock-keywords nil nil ((?_ . "w"))))
(add-hook 'before-save-hook #'dns-mode-soa-maybe-increment-serial
nil t))