set up typst support for emacs
This commit is contained in:
parent
eefefb4ffb
commit
e0dd59640f
2 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(setq user-full-name "pelsh"
|
(setq user-full-name "insects"
|
||||||
user-mail-address "mail@liv.nrw")
|
user-mail-address "mail@liv.nrw")
|
||||||
|
|
||||||
;; Set fonts and window sizes
|
;; Set fonts and window sizes
|
||||||
|
@ -34,6 +34,15 @@
|
||||||
:custom
|
:custom
|
||||||
(mood-line-gylph-alist mood-line-glyphs-fira-code))
|
(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
|
;; 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.
|
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -14,6 +14,15 @@
|
||||||
;; Custom modeline
|
;; Custom modeline
|
||||||
(package! mood-line)
|
(package! mood-line)
|
||||||
|
|
||||||
|
;; Typst TS mode
|
||||||
|
(package! typst-ts-mode
|
||||||
|
:recipe (:host codeberg :repo "meow_king/typst-ts-mode"))
|
||||||
|
|
||||||
|
;; Typst preview
|
||||||
|
(package! websocket)
|
||||||
|
(package! typst-preview
|
||||||
|
:recipe (:host github :repo "havarddj/typst-preview.el"))
|
||||||
|
|
||||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||||
;; (package! some-package)
|
;; (package! some-package)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue