Hugo compiles over remote connections smoothly now
This commit is contained in:
parent
5d6b6126e8
commit
239d3a1457
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user