From 0809e73b16b86a943943440c6406a35318784556 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 29 Mar 2024 20:51:40 -0400 Subject: [PATCH] mode-hooks.el: add dns-mode hooks 1. Disable SOA serial number auto-update. 2. Always use spaces to indent. --- mode-hooks.el | 1 + mode-hooks/dns-mode-hooks.el | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 mode-hooks/dns-mode-hooks.el 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)) -- 2.44.2