From b4859f807a259497afc186b6bc88b7a2a061397e Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 5 Jul 2024 15:20:12 +0200 Subject: [PATCH] Update .emacs.d/README.org --- private_dot_emacs.d/README.org | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/private_dot_emacs.d/README.org b/private_dot_emacs.d/README.org index 7a9717e..9796f34 100644 --- a/private_dot_emacs.d/README.org +++ b/private_dot_emacs.d/README.org @@ -229,21 +229,24 @@ I use org-superstar-mode, as it makes headlines and bullets look really nice. ** Eglot Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightweight and more straightforward to setup correctly. #+begin_src emacs-lisp - (use-package eglot - :bind (:map eglot-mode-map - ("C-c C-d" . eldoc) - ("C-c C-e" . eglot-rename) - ("C-c C-o" . python-sort-imports) - ("C-c C-f" . eglot-format-buffer)) - :hook ((tsx-ts-mode . eglot-ensure) - (typescript-ts-mode . eglot-ensure))) + (use-package eglot + :bind (:map eglot-mode-map + ("C-c C-d" . eldoc) + ("C-c C-e" . eglot-rename) + ("C-c C-o" . python-sort-imports) + ("C-c C-f" . eglot-format-buffer)) + :hook ((tsx-ts-mode . eglot-ensure) + (typescript-ts-mode . eglot-ensure))) - ;; makes eglot faster using a rust wrapper, needs to be in PATH - (use-package eglot-booster - :vc (:fetcher github :repo jdtsmith/eglot-booster) - :after eglot - :config - (eglot-booster-mode)) + (setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2 + :convertTabsToSpaces t + :semicolons "remove")))) + ;; makes eglot faster using a rust wrapper, needs to be in PATH + (use-package eglot-booster + :vc (:fetcher github :repo jdtsmith/eglot-booster) + :after eglot + :config + (eglot-booster-mode)) #+end_src ** Autocompletion