Browse Source

typst config

master
Marc 2 weeks ago
parent
commit
90e639e718
1 changed files with 29 additions and 0 deletions
  1. 29
      config.org

29
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?

Loading…
Cancel
Save