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.
16
16
* ` typeof myVar === undefined ` now reports [ E0458] [ ] ("typeof result is of type
17
17
string and so will never equal undefined; use 'undefined' instead").
18
18
(Implemented by [ CoderMuffin] [ ] .) ([ #1207 ] [ ] )
19
+ * Emacs: The Eglot plugin now supports ` typescript-mode ` .
19
20
20
21
### Fixed
21
22
Original file line number Diff line number Diff line change 18
18
; ; ;; Optional: Make Eglot run automatically when `js-mode' is loaded
19
19
; ; (eglot-ensure))
20
20
; ; (add-hook 'js-mode-hook #'my-eglot-quicklintjs-setup)
21
+ ; ; (add-hook 'typescript-mode-hook #'my-eglot-quicklintjs-setup)
21
22
22
23
; ;; Code:
23
24
38
39
:group 'eglot-quicklintjs
39
40
:type '(repeat string))
40
41
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 )))
44
46
45
47
(provide 'eglot-quicklintjs )
46
48
Original file line number Diff line number Diff line change @@ -50,12 +50,6 @@ <h2 id="eglot">Eglot</h2>
50
50
< code > eglot-quicklintjs</ code > library:
51
51
</ p >
52
52
< 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 >
59
53
< p >
60
54
To speed up JavaScript linting, configure Eglot to send changes to
61
55
quick-lint-js immediately without delay by adding the following to your
@@ -67,9 +61,11 @@ <h2 id="eglot">Eglot</h2>
67
61
;; checking buffer. The default is 0.5 (500ms)
68
62
(setq-local eglot-send-changes-idle-time 0)
69
63
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.
71
66
(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 >
73
69
74
70
< h2 id ="flycheck "> Flycheck</ h2 >
75
71
< p >
You can’t perform that action at this time.
0 commit comments