mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(lang): Work around for whitespace-mode issue with caddyfile-mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user