Note: For Emacs 29 users, please use typst-ts-mode instead, which is a lot more consummate than this mode.
Note2: I suppose I have no motion and plan to update this major mode in a long time, so I'll achieve
this major mode(github). I will spend more energy into maintaining typst-ts-mode
and uben0/tree-sitter-typst
Note3: If someone wants to renew typst-mode
and built it on top of the existing code, contact me (mr.meowking@anche.no
), I can transfer this repo to you.
Emacs support for Typst.
typst
With use-package
and straight
:
(use-package typst-mode
:straight (:type git :host github :repo "Ziqi-Yang/typst-mode.el"))
Manually:
;; add typst-mode directory to the load-path
(push (expand-file-name "modules/languages/typst-mode" user-emacs-directory) load-path)
;; load tyspt-mode
(require 'typst-mode)
typst-compile
(default keybinding: C-c C-c
; also provide typst-compile-preview
)typst-preview
(default keybinding: C-c C-p
)typst-toggle-watch
(default keybind: C-c C-w
; also provide typst-watch
and typst-stop-watch
)Faces can be configured through M-x customize
: Text
-> Typst
-> Typst Mode Faces
.
This project is mainly hosted on SourceHut, which means you are welcome to use email as the primary contribution methods (including proposing an new idea on public mailing list and send a patch via git send-email
). However, it is also acceptable to use GitHub.