branch: elpa/typst-ts-mode commit 4198faf6674cb2656327dd8528790072b7f337ec Author: Valentino Slavkin <vslv...@proton.me> Commit: Valentino Slavkin <vslv...@proton.me>
`typst-ts-compile-and-preview` using `typst-ts-compile` Avoids repeating code --- typst-ts-compile.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/typst-ts-compile.el b/typst-ts-compile.el index 4e20e51f2d..c9f0538bed 100644 --- a/typst-ts-compile.el +++ b/typst-ts-compile.el @@ -116,12 +116,7 @@ buffer before compilation." "Compile & Preview. Assuming the compile output file name is in default style." (interactive) - ;; use a local variable version of `compilation-finish-functions' to shadow - ;; global version doesn't work - (add-hook 'compilation-finish-functions - (typst-ts-mode-compile-and-preview--compilation-finish-function - (current-buffer))) - (typst-ts-compile)) + (typst-ts-compile t)) (defvar typst-ts-compilation-mode-error (cons (rx bol "error:" (+ not-newline) "\n" (+ blank) "┌─ "