fix(lang): Work around for whitespace-mode issue with caddyfile-mode

This commit is contained in:
2020-06-07 15:54:26 +01:00
parent a74610689e
commit 1ef8570f05

View File

@@ -18,7 +18,15 @@
:init
(defun siren-caddyfile-mode-setup ()
(setq-local tab-width 4
indent-tabs-mode nil)))
indent-tabs-mode nil)
;; TODO: Fix this horrible Hock. To work around prog-mode hooks running
;; before current method, enabling whitespace-mode before the local
;; indent-tabs-mode var is set to nil. Hence we need to toggle
;; whitespace-mode off, and then on again to fix it's complaints about a
;; space indentation.
(whitespace-mode -1)
(whitespace-mode +1)))
(provide 'siren-caddyfile)
;;; siren-caddyfile.el ends here