From: Michael Orlitzky Date: Sat, 30 Mar 2024 00:51:40 +0000 (-0400) Subject: mode-hooks.el: add dns-mode hooks X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=0809e73b16b86a943943440c6406a35318784556;p=emacs.d.git mode-hooks.el: add dns-mode hooks 1. Disable SOA serial number auto-update. 2. Always use spaces to indent. --- diff --git a/mode-hooks.el b/mode-hooks.el index 30599e2..b0517f3 100644 --- a/mode-hooks.el +++ b/mode-hooks.el @@ -3,6 +3,7 @@ (file-name-sans-extension load-file-name)) (load-library "css-mode-hooks") +(load-library "dns-mode-hooks") (load-library "js-mode-hooks") (load-library "haskell-mode-hooks") (load-library "multi-term-hooks") diff --git a/mode-hooks/dns-mode-hooks.el b/mode-hooks/dns-mode-hooks.el new file mode 100644 index 0000000..c621a70 --- /dev/null +++ b/mode-hooks/dns-mode-hooks.el @@ -0,0 +1,6 @@ +(defun dnsm-hook() + (setq dns-mode-soa-auto-increment-serial nil) + (setq indent-tabs-mode nil) +) + +(add-hook 'dns-mode-hook (function dnsm-hook))