branch: elpa/typst-ts-mode
commit 5f1ff0343f94f3691db6a4b380ca7e417bf21793
Author: Valentino Slavkin <[email protected]>
Commit: Valentino Slavkin <[email protected]>
Replaced `typst-ts-mode-peview` by the improved `typst-ts-preview`
---
typst-ts-mode.el | 10 +---------
typst-ts-transient.el | 2 +-
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/typst-ts-mode.el b/typst-ts-mode.el
index 9c3554abf5..88cc1333d6 100644
--- a/typst-ts-mode.el
+++ b/typst-ts-mode.el
@@ -461,19 +461,11 @@ This function is meant to be used when user hits a return
key."
0)))
-;;;###autoload
-(defun typst-ts-mode-preview (file)
- "Open the result compile file.
-FILE: file path for the result compile file."
- (interactive (list (typst-ts-compile-get-result-pdf-filename)))
- ;; don't use `browse-url-of-file', which cannot open non-english documents
- (browse-url file))
-
;;;###autoload
(defvar-keymap typst-ts-mode-map
"C-c C-c" #'typst-ts-compile ; use prefix argument to do preview
"C-c C-w" #'typst-ts-watch-mode
- "C-c C-p" #'typst-ts-mode-preview
+ "C-c C-p" #'typst-ts-preview
"M-<left>" #'typst-ts-mode-meta-left
"M-<right>" #'typst-ts-mode-meta-right
diff --git a/typst-ts-transient.el b/typst-ts-transient.el
index fbf21287fb..53f03cf7dd 100644
--- a/typst-ts-transient.el
+++ b/typst-ts-transient.el
@@ -31,7 +31,7 @@
("c" "compile & preview" typst-ts-compile-and-preview)
("C" "compile" typst-ts-compile)
("w" "watch" typst-ts-watch-mode)
- ("p" "preview" typst-ts-mode-preview)]
+ ("p" "preview" typst-ts-preview)]
["Export"
("em" "markdown" typst-ts-mc-export-to-markdown)]