docs(emacs basic-config): add workaround for Typescript LSP

This commit is contained in:
Lucien Cartier-Tilet 2024-01-22 21:19:34 +01:00
parent f84d9e535d
commit 13f5dde10a
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 10 additions and 0 deletions

View File

@ -160,6 +160,16 @@ keep its backup files to itself in a directory it only will access.
user-emacs-directory))))
#+end_src
When using LSP with Typescript projects, my =tsconfig.json= or its
equivalent would constantly get polluted with symlinks going through
my home directory, creating some horror imports. This is because the
server tries to import some files through the symlink of the backup of
the file I want to import. By forbidding Emacs to create symlinks for
backups, we should avoid this problem.
#+begin_src emacs-lisp
(setq backup-by-copying t)
#+end_src
It also loves to litter its ~init.el~ with custom variables here and
there, but the thing is: I regenerate my ~init.el~ each time I tangle
this file! How can I keep Emacs from adding stuff that will be almost