]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
mode-hooks.el: add dns-mode hooks
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 30 Mar 2024 00:51:40 +0000 (20:51 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 30 Mar 2024 00:51:40 +0000 (20:51 -0400)
1. Disable SOA serial number auto-update.
2. Always use spaces to indent.

mode-hooks.el
mode-hooks/dns-mode-hooks.el [new file with mode: 0644]

index 30599e2f9fb0e7312eee0233d7e2a72989debf9f..b0517f396274c09457787c801be87ba5dc97f94d 100644 (file)
@@ -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 (file)
index 0000000..c621a70
--- /dev/null
@@ -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))