Hugo compiles over remote connections smoothly now

This commit is contained in:
MitchMarq42 2022-12-16 12:44:05 -09:00
parent 5d6b6126e8
commit 239d3a1457

View File

@ -599,7 +599,7 @@ Return nil if DIR is not in a hugo project at all."
(with-current-buffer buffer (with-current-buffer buffer
(compilation-mode) (compilation-mode)
(if (zerop (let ((inhibit-read-only t)) (if (zerop (let ((inhibit-read-only t))
(call-process "sh" nil buffer t "-c" "hugo"))) (shell-command "hugo" buffer)))
(message "Hugo re-generated!") (message "Hugo re-generated!")
(error "Hugo Failed, better change something!")))))))) (error "Hugo Failed, better change something!"))))))))
(add-hook 'after-save-hook (add-hook 'after-save-hook