branch: elpa/typst-ts-mode commit 0d40d36caebdf02e369e99b9f06f1ac643617a5d Merge: 14affa17e3 89ee073562 Author: Meow King <mr.meowk...@anche.no> Commit: Meow King <mr.meowk...@anche.no>
Merge branch 'main' into feat/heading-operations --- README.md | 17 ++++++++--------- typst-ts-mode.el | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6013797d53..ce058bcde4 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ Tree Sitter support for Typst. Minimum Emacs version requirement: 29. 1. Emacs >= 29 2. Latest [Typst](https://github.com/typst/typst). -`typst 0.9.0 (7bb4f6df)` +`typst 0.10.0 (70ca0d25)` 3. Tree Sitter parser for Typst: https://github.com/uben0/tree-sitter-typst -commit: `a96fa35` +commit: `c0765e3` Note this tree sitter parser is included in [tree sitter modules](https://github.com/casouri/tree-sitter-module), so you can use the build script in it to get this parser. @@ -94,15 +94,14 @@ For some options you may find useful: 3. `typst-ts-mode-watch-options`. Set this to `--open` so typst will open the compiled file for you. 4. `typst-ts-mode-compile-options`. Note that setting `--open` has no use for this -customization variable. What `--open` do in Typst process is to spawn a new thread -to open the compiled file with default application corresponding to each platform. With its -main process finished, all Typst's sub-process will be killed by Emacs (This is my assumption, -for more information, you may have to dive into [crate - open](https://crates.io/crates/open)). -You can try shell command `typst compile <file> --open && sleep 1` in Emacs to see what happened. +customization variable. You can execute the shell command +`typst compile <file> --open && sleep 1` to view what is happening. 5. `typst-ts-mode-display-watch-process-bufer-automatically`. This is set to `t` by default, so the `typst watch` process buffer appear when an error occurs, and disappear -when there is no error. You may find there is only one error at a time, and it is -because Typst itself do this style. You may find `auto-save-mode`, `auto-save-visited-mode`, [auto-save](https://github.com/manateelazycat/auto-save) or [super-save](https://github.com/bbatsov/super-save) useful (or annoying). +when there is no error. You may find sometimes there is only one error at a time, and it is +because Typst itself do this style. You may find `auto-save-visited-mode`, +[auto-save](https://github.com/manateelazycat/auto-save) or +[super-save](https://github.com/bbatsov/super-save) useful (or annoying). 6. `typst-ts-markup-header-same-height` and `typst-ts-markup-header-scale` to control header height. 7. `typst-ts-mode-before-compile-hook` and `typst-ts-mode-after-compile-hook` diff --git a/typst-ts-mode.el b/typst-ts-mode.el index 3c094c8079..21ddb10ab1 100644 --- a/typst-ts-mode.el +++ b/typst-ts-mode.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2023 Ziqi Yang <mr.meowk...@anche.no> -;; Version: 0.8.0 +;; Version: 0.10.0 ;; Author: Ziqi Yang <mr.meowk...@anche.no> ;; Keywords: typst languages tree-sitter ;; URL: https://git.sr.ht/~meow_king/typst-ts-mode @@ -45,7 +45,7 @@ :group 'typst-ts) (defcustom typst-ts-mode-indent-offset 4 - "Number of spaces for each indentation step in `json-ts-mode'." + "Number of spaces for each indentation step in `typst-ts-mode'." :type 'integer :group 'typst-ts)