From 13f5dde10ae92ce73b5e34898cc62465b06c9a4f Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 22 Jan 2024 21:19:34 +0100 Subject: [PATCH] docs(emacs basic-config): add workaround for Typescript LSP --- docs/emacs/basic-config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/emacs/basic-config.org b/docs/emacs/basic-config.org index 7a44603..a5d58e6 100644 --- a/docs/emacs/basic-config.org +++ b/docs/emacs/basic-config.org @@ -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