summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org22
1 files changed, 22 insertions, 0 deletions
diff --git a/jakob.org b/jakob.org
index 11cda3a..a97d2c1 100644
--- a/jakob.org
+++ b/jakob.org
@@ -1903,3 +1903,25 @@ Redefinition of =xscheme-default-command-line= so that '-emacs' is not passed to
(concat " -band " scheme-band-name)
""))))
#+END_SRC
+
+** Javascript
+
+Use a [[Language Server Protocol]] daemon.
+
+#+BEGIN_SRC elisp
+(use-package js
+ :straight nil
+ :requires lsp-mode
+ :hook (js-mode . lsp)
+
+ :config
+ (lsp-register-client
+ (make-lsp-client :new-connection (lsp-stdio-connection "~/.bin/js-ts-stdio")
+ :major-modes '(js-mode)
+ :server-id 'js-ts-stdio))
+#+END_SRC
+
+#+BEGIN_SRC elisp
+ :init
+ (setq-default js-indent-level 2))
+#+END_SRC

© 2015 - 2026 Jakob L. Kreuze