Explain that .csp files are HTML files.
They are “C++ Server Pages” from Drogon.
This commit is contained in:
parent
eb6fe2521b
commit
2fd22076e9
|
@ -52,6 +52,7 @@
|
||||||
(add-to-list 'lsp-clients-clangd-args "--background-index" t))
|
(add-to-list 'lsp-clients-clangd-args "--background-index" t))
|
||||||
;; Mark lsp-clients-clangd-args as safe to override.
|
;; Mark lsp-clients-clangd-args as safe to override.
|
||||||
(put 'lsp-clients-clangd-args 'safe-local-variable #'consp)
|
(put 'lsp-clients-clangd-args 'safe-local-variable #'consp)
|
||||||
|
(add-to-list 'lsp-language-id-configuration '(".*\\.csp$" . "html"))
|
||||||
|
|
||||||
(defun my/lsp-init ()
|
(defun my/lsp-init ()
|
||||||
"Change some settings after entering lsp-mode."
|
"Change some settings after entering lsp-mode."
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
(replace-match "<p>\\1</p>"))))
|
(replace-match "<p>\\1</p>"))))
|
||||||
:mode (("\\.[ps]?html?$" . web-mode)
|
:mode (("\\.[ps]?html?$" . web-mode)
|
||||||
("\\.tmpl$" . web-mode) ; Gitea templates.
|
("\\.tmpl$" . web-mode) ; Gitea templates.
|
||||||
("\\.php$" . web-mode))
|
("\\.php$" . web-mode)
|
||||||
|
("\\.csp$" . web-mode)) ; Drogon templates (C++ Server Pages).
|
||||||
:hook (web-mode . (lambda () (set-fill-column 120)))
|
:hook (web-mode . (lambda () (set-fill-column 120)))
|
||||||
:bind ("C-c C-M-h" . my/html-surround-with-tag))
|
:bind ("C-c C-M-h" . my/html-surround-with-tag))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user