Update .emacs.d/README.org
This commit is contained in:
parent
70c70ab401
commit
a39de9d630
1 changed files with 7 additions and 5 deletions
|
@ -249,7 +249,9 @@ Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightw
|
||||||
:hook ((tsx-ts-mode . eglot-ensure)
|
:hook ((tsx-ts-mode . eglot-ensure)
|
||||||
(typescript-ts-mode . eglot-ensure)
|
(typescript-ts-mode . eglot-ensure)
|
||||||
(python-ts-mode . eglot-ensure)
|
(python-ts-mode . eglot-ensure)
|
||||||
(eglot-mode . electric-pair-mode)))
|
(eglot--managed-mode . electric-pair-mode)
|
||||||
|
(eglot--managed-mode . (lambda ()
|
||||||
|
(add-hook 'after-save-hook #'eglot-format-buffer nil t)))))
|
||||||
|
|
||||||
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
|
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
|
||||||
:convertTabsToSpaces t
|
:convertTabsToSpaces t
|
||||||
|
|
Loading…
Reference in a new issue