File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
website/public/install/emacs/configure Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Semantic Versioning.
1616* ` typeof myVar === undefined ` now reports [ E0458] [ ] ("typeof result is of type
1717 string and so will never equal undefined; use 'undefined' instead").
1818 (Implemented by [ CoderMuffin] [ ] .) ([ #1207 ] [ ] )
19+ * Emacs: The Eglot plugin now supports ` typescript-mode ` .
1920
2021### Fixed
2122
Original file line number Diff line number Diff line change 1818; ; ;; Optional: Make Eglot run automatically when `js-mode' is loaded
1919; ; (eglot-ensure))
2020; ; (add-hook 'js-mode-hook #'my-eglot-quicklintjs-setup)
21+ ; ; (add-hook 'typescript-mode-hook #'my-eglot-quicklintjs-setup)
2122
2223; ;; Code:
2324
3839 :group 'eglot-quicklintjs
3940 :type '(repeat string))
4041
41- (add-to-list 'eglot-server-programs `(js-mode . (, eglot-quicklintjs-program
42- " --lsp-server"
43- ,@eglot-quicklintjs-args )))
42+ (add-to-list 'eglot-server-programs
43+ `((js-mode typescript-mode) . (, eglot-quicklintjs-program
44+ " --lsp-server"
45+ ,@eglot-quicklintjs-args )))
4446
4547(provide 'eglot-quicklintjs )
4648
Original file line number Diff line number Diff line change @@ -50,12 +50,6 @@ <h2 id="eglot">Eglot</h2>
5050 < code > eglot-quicklintjs</ code > library:
5151 </ p >
5252 < pre > < code class ="elisp "> (require 'eglot-quicklintjs)</ code > </ pre >
53- < p >
54- TODO:
55- < a href ="https://github.com/quick-lint/quick-lint-js/issues/1146 "
56- > TypeScript support</ a
57- >
58- </ p >
5953 < p >
6054 To speed up JavaScript linting, configure Eglot to send changes to
6155 quick-lint-js immediately without delay by adding the following to your
@@ -67,9 +61,11 @@ <h2 id="eglot">Eglot</h2>
6761 ;; checking buffer. The default is 0.5 (500ms)
6862 (setq-local eglot-send-changes-idle-time 0)
6963
70- ;; Optional: Make Eglot run automatically when `js-mode' is loaded
64+ ;; Optional: Make Eglot run automatically when `js-mode' or `typescript-mode'
65+ ;; is loaded.
7166 (eglot-ensure))
72- (add-hook 'js-mode-hook #'my-eglot-quicklintjs-setup)</ code > </ pre >
67+ (add-hook 'js-mode-hook #'my-eglot-quicklintjs-setup)
68+ (add-hook 'typescript-mode-hook #'my-eglot-quicklintjs-setup)</ code > </ pre >
7369
7470 < h2 id ="flycheck "> Flycheck</ h2 >
7571 < p >
You can’t perform that action at this time.
0 commit comments