((typescript-mode . ((eval . (progn ;; For TIDE: (setq tide-tsserver-executable (concat (let ((d (dir-locals-find-file "."))) (if (stringp d) d (car d))) "node_modules/typescript/lib/tsserver.js")) ;; For LSP: (require 'lsp-javascript) (lsp-dependency 'typescript `(:system ,(concat (let ((d (dir-locals-find-file "."))) (if (stringp d) d (car d))) "node_modules/typescript/lib/tsserver.js")))) ))))