Are there any best practices for how to do Typst in Emacs?

Do you have any best practices for how to do Typst in Emacs?
How did you configure your Emacs to make typst-Editing as friction-free as possible?

Hi @Sinthoras

I don’t. I installed typst, tinymist and am using eglot and typst-ts mode for emacs.

typst-ts-mode

tinymist

eglot

I think eglot has been built in to emacs since 26.3

Let me know if I can help with anything else.

Cheers

Okay, thank you. I actually have a few questions about Emacs and Typst.

  1. Do you use a package for in-buffer hints while hovering or when typing?
  2. Do you use any autosave method? If not, what is your keybinding for saving a file?
  3. Is there a package that can enable the paste an image utility of the Web-App?
  4. Is there a way to tab out of paranthesis and brackets like the overloaded tab key functionality of cdlatex?

I feel like one should save often to get the most out of the fast compilation with watch, but the standard C-x C-s are two keys which can get tiring.

I currently use Emacs for LaTex editing (and am very pleased and view it as the best way to edit LaTeX) and edit Typst in the Web App, but I would prefer to do it locally in my Emacs as I do with LaTex, but now I feel like I want to have the best of both worlds (meaning, of the LaTeX Emacs capabilities and the Web Apps Typst capabilities both for Emacs and Typst.)

Hi @Sinthoras

I don’t use a package for in-buffer hints.
I do use a package called super-save. This is an auto-save package that can be configured.
I’m not sure about pasting images like the web-app can.
And I’m not sure about a way to tab out of parentheses either.

I am just looking at yasnippet to get a lot of my most regular code snippets inserted.

Not much help I’m afraid :slight_smile:

Cheers.

For preview, you can see typst-preview.el (it works with tinymist).

1 Like

Hi @Sinthoras / @raimann

I just got round to getting tinymist and typst-preview working in emacs. Using eglot and eldoc-box for hints in a childframe. It’s working great.

1 Like

Is there a company-mode for typst yet? :slight_smile:

for anyone else who’s confused: company-mode for Emacs

1 Like