set up typst support for emacs

This commit is contained in:
insects 2025-01-11 15:18:55 +01:00
parent eefefb4ffb
commit e0dd59640f
2 changed files with 19 additions and 1 deletions

View file

@ -1,6 +1,6 @@
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(setq user-full-name "pelsh"
(setq user-full-name "insects"
user-mail-address "mail@liv.nrw")
;; Set fonts and window sizes
@ -34,6 +34,15 @@
:custom
(mood-line-gylph-alist mood-line-glyphs-fira-code))
;; Map some typst-ts-mode keys
(map! :map typst-ts-mode-map
:localleader
"p p" #'typst-preview-start
"p o" #'typst-preview-open-browser
"p k" #'typst-preview-stop
"c c" #'typst-ts-compile
"c p" #'typst-ts-preview)
;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;