mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
feat: take configuration items from tinymist
section (#835)
* feat: take configuration items from `tinymist` section * docs: update configuration guide in emacs
This commit is contained in:
parent
8e36f25cf2
commit
263458a80b
2 changed files with 29 additions and 19 deletions
|
@ -42,24 +42,7 @@ For example, if you want to export PDF on save:
|
|||
|
||||
```el
|
||||
(setq-default eglot-workspace-configuration
|
||||
'(:exportPdf "onSave"))
|
||||
```
|
||||
|
||||
Here is an example for both configuring `pylsp` and `tinymist`
|
||||
|
||||
```el
|
||||
(setq-default eglot-workspace-configuration
|
||||
'(:pylsp (:plugins (:ruff (:enabled t)))
|
||||
:exportPdf "onSave"))
|
||||
```
|
||||
|
||||
NOTE: Currently, `tinymist` doesn't support having its name as the top-level
|
||||
configuration entry, so the following configuration won't work:
|
||||
|
||||
```el
|
||||
(setq-default eglot-workspace-configuration
|
||||
'(:pylsp (:plugins (:ruff (:enabled t)))
|
||||
:tinymist (:exportPdf "onSave")))
|
||||
'(:tinymist (:exportPdf "onSave")))
|
||||
```
|
||||
|
||||
You can also have configuration per directory. Be sure to look at the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue