Skip to content

Commit 54580ae

Browse files
authored
Explain how to set LSP_USE_PLISTS in early-init. (#4295)
1 parent 51ef3c5 commit 54580ae

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/page/performance.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ Again the emacs default is too low 4k considering that the some of the language
3535
### Use `plists` for deserialization.
3636
`lsp-mode` can be compiled in 2 modes `plist` and `hash-table` based `lsp-use-plists` flag. `plist`s provide better performance in deserialization and also put less presure than `hash-table`s. To switch to `plist` you have to perform 2 steps:
3737

38-
1. Configure the following env variable. Make sure that `Emacs` can see that variable (best way to do that is to start `Emacs` from the shell, not from the icon).
38+
1. Configure the following env variable. Make sure that `Emacs` can see that variable. For example, this can be done by starting `Emacs` from the shell.
3939
``` bash
4040
export LSP_USE_PLISTS=true
4141
```
42-
2. Delete `lsp-mode` related packages.
42+
or by setting it in `early-init.el`:
43+
```elisp
44+
(setenv "LSP_USE_PLISTS" "true")
45+
```
46+
2. Delete `lsp-mode` related packages. This can be done with `package-delete`.
4347
3. Make sure that `lsp-use-plists` is non-nil.
4448
4. Restart `Emacs` and install again `lsp-mode` related packages.
4549

0 commit comments

Comments
 (0)