branch: elpa/typst-ts-mode commit 2c822465690d094f8004140d4d7c56c81ed76a93 Author: meowking <mr.meowk...@tutamail.com> Commit: meowking <mr.meowk...@tutamail.com>
fix: `typst-ts-compile` preview doc by default --- typst-ts-compile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typst-ts-compile.el b/typst-ts-compile.el index 225f725a1b..4c417fb3f1 100644 --- a/typst-ts-compile.el +++ b/typst-ts-compile.el @@ -65,10 +65,10 @@ compilation buffer before compilation." (defun typst-ts-compile (&optional arg) "Compile current typst file. -When use a prefix argument, then preview the document after compilation. +When use a prefix argument, don't preview the document after compilation. ARG: prefix argument." (interactive "P") - (when arg + (unless arg (add-hook 'compilation-finish-functions (typst-ts-mode-compile-and-preview--compilation-finish-function (current-buffer))))