Add svelte-mode
This commit is contained in:
parent
855b1cf24d
commit
bacbd9b58d
26
init.el
26
init.el
@ -450,14 +450,16 @@ DOCSTRING is an optional form that is discarded upon expansion."
|
|||||||
eglot-hover-eldoc-function))
|
eglot-hover-eldoc-function))
|
||||||
(eglot-inlay-hints-mode -1))
|
(eglot-inlay-hints-mode -1))
|
||||||
:config
|
:config
|
||||||
|
(add-to-list 'eglot-server-programs `(svelte-mode . ("svelteserver" "--stdio")))
|
||||||
;; Remove the mode-line segment that Eglot adds
|
;; Remove the mode-line segment that Eglot adds
|
||||||
(setq mode-line-misc-info (assoc-delete-all 'eglot--managed-mode mode-line-misc-info))
|
(setq mode-line-misc-info (assoc-delete-all 'eglot--managed-mode mode-line-misc-info))
|
||||||
:hook
|
:hook
|
||||||
(c-ts-base-mode-hook . eglot-ensure)
|
(c-ts-base-mode-hook . eglot-ensure)
|
||||||
|
(gdscript-mode-hook . eglot-ensure)
|
||||||
(js-ts-mode-hook . eglot-ensure)
|
(js-ts-mode-hook . eglot-ensure)
|
||||||
(rust-ts-mode-hook . eglot-ensure)
|
(rust-ts-mode-hook . eglot-ensure)
|
||||||
|
(svelte-mode-hook . eglot-ensure)
|
||||||
(typescript-mode-hook . eglot-ensure)
|
(typescript-mode-hook . eglot-ensure)
|
||||||
(gdscript-mode-hook . eglot-ensure)
|
|
||||||
(eglot-managed-mode-hook . user/set-up-eglot)
|
(eglot-managed-mode-hook . user/set-up-eglot)
|
||||||
:bind
|
:bind
|
||||||
(:map eglot-mode-map
|
(:map eglot-mode-map
|
||||||
@ -986,16 +988,22 @@ DOCSTRING is an optional form that is discarded upon expansion."
|
|||||||
(external-package markdown-mode
|
(external-package markdown-mode
|
||||||
"Major mode for Markdown files."
|
"Major mode for Markdown files."
|
||||||
:mode
|
:mode
|
||||||
(("\\.md\\'" . markdown-mode)))
|
("\\.md\\'" . markdown-mode))
|
||||||
|
|
||||||
(external-package web-mode
|
(external-package svelte-mode
|
||||||
"Major mode for web templates."
|
"Major mode for Svelte files."
|
||||||
:custom
|
|
||||||
(web-mode-markup-indent-offset 2 "Use 2 spaces instead of 4 for indenting HTML elements")
|
|
||||||
(web-mode-enable-auto-quoting nil "Do not automatically insert quotes after HTML attributes")
|
|
||||||
:mode
|
:mode
|
||||||
(("\\.php\\'" . web-mode)
|
("\\.svelte\\'" . svelte-mode))
|
||||||
("\\.html\\'" . web-mode)))
|
|
||||||
|
;; (external-package web-mode
|
||||||
|
;; "Major mode for web templates."
|
||||||
|
;; :custom
|
||||||
|
;; (web-mode-markup-indent-offset 2 "Use 2 spaces instead of 4 for indenting HTML elements")
|
||||||
|
;; (web-mode-enable-auto-quoting nil "Do not automatically insert quotes after HTML attributes")
|
||||||
|
;; :mode
|
||||||
|
;; ("\\.php\\'" . web-mode)
|
||||||
|
;; ("\\.html\\'" . web-mode)
|
||||||
|
;; ("\\.svelte\\'" . web-mode))
|
||||||
|
|
||||||
;; ---------------------------------- ;;
|
;; ---------------------------------- ;;
|
||||||
;; anzu
|
;; anzu
|
||||||
|
Loading…
Reference in New Issue
Block a user