From 06a0610eeef8c4316633e270dfdee3cee04a0bb2 Mon Sep 17 00:00:00 2001 From: Simponic Date: Tue, 15 Nov 2022 10:11:40 -0700 Subject: [PATCH] Fix typescript language server on emacs --- .emacs.d/settings.org | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.emacs.d/settings.org b/.emacs.d/settings.org index 0ed73c3..72cd52a 100644 --- a/.emacs.d/settings.org +++ b/.emacs.d/settings.org @@ -207,7 +207,7 @@ :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode) (elixir-mode . lsp) (rust-mode . lsp) - (typescript-mode . lsp) + (typescript-mode . lsp) ;; npm install -g typescript typescript-language-server ;; if you want which-key integration (lsp-mode . lsp-enable-which-key-integration)) :commands lsp) @@ -254,12 +254,12 @@ After installing the ~rust-analyzer~ program, the following can be used: #+BEGIN_SRC emacs-lisp (use-package prettier-js :ensure t) - (add-hook 'web-mode-hook #'(lambda () - (enable-minor-mode - '("\\.jsx?\\'" . prettier-js-mode)) - (enable-minor-mode - '("\\.tsx?\\'" . prettier-js-mode)))) + (add-hook 'js2-mode-hook 'prettier-js-mode) + (add-hook 'web-mode-hook 'prettier-js-mode) #+END_SRC + +#+RESULTS: + *** Kotlin #+BEGIN_SRC emacs-lisp (use-package kotlin-mode