diff --git a/config.org b/config.org index 3c166ec..f0a8075 100644 --- a/config.org +++ b/config.org @@ -2043,7 +2043,36 @@ Start fava with fava my_file.beancount It is accessable on this URL: [[http://127.0.0.1:5000][Fava]] Beancount-mode can start fava and open the URL right away. +* typst +todo +tinymist lsp +tree-sitter +#+begin_src emacs-lisp +(use-package typst-ts-mode +:ensure (:type git :host codeberg :repo "meow_king/typst-ts-mode" :branch "develop") + :custom + (typst-ts-watch-options "--open") + (typst-ts-mode-grammar-location (expand-file-name "tree-sitter/libtree-sitter-typst.so" user-emacs-directory)) + (typst-ts-mode-enable-raw-blocks-highlight t) + :config + (keymap-set typst-ts-mode-map "C-c C-c" #'typst-ts-tmenu)) + +;;workaround until I can use typst tree-sitter +;; https://github.com/Ziqi-Yang/typst-mode.el +(use-package typst-mode + :ensure (:type git :host github :repo "Ziqi-Yang/typst-mode.el") + :mode ("\\.typst\\'" . typst-mode) + :config + (setq lsp-clients-typst-server-command '("typst" "serve"))) +(use-package websocket + :ensure t) +(use-package typst-preview + :ensure (:type git :host github :repo "havarddj/typst-preview.el") + :config + (setq typst-preview-browser "default")) + +#+end_src * Stuff after everything else Set garbage collector to a smaller value to let it kick in faster. Maybe a problem on Windows?