1

Add web-mode and json-mode

This commit is contained in:
Jessie Hildebrandt 2020-07-20 20:16:51 -04:00
parent ff48007edb
commit 6dfa38b5d3

20
init.el
View File

@ -395,12 +395,19 @@
:mode :mode
("\\.lua\\'" . lua-mode)) ("\\.lua\\'" . lua-mode))
;; Load PHP Mode ;; Load Web Mode
;; (Associated files: .php (HTML-Mode), .inc) ;; (Associated files: .php, .inc, .html)
(use-package php-mode (use-package web-mode
:mode :mode
(("\\.php\\'" . html-mode) (("\\.php\\'" . web-mode)
("\\.inc\\'" . php-mode))) ("\\.inc\\'" . web-mode)
("\\.html\\'" . web-mode)))
;; Load JSON Mode
;; (Associated files: .json)
(use-package json-mode
:mode
("\\.json\\'" . json-mode))
;; Load Rust Mode ;; Load Rust Mode
;; (Associated files: .rs) ;; (Associated files: .rs)
@ -444,10 +451,11 @@
;;==================== ;;====================
;; Load LSP Mode ;; Load LSP Mode
;; Associated languages: JavaScript, GDScript ;; Associated languages: JavaScript, JSON, GDScript, Rust
(use-package lsp-mode (use-package lsp-mode
:hook :hook
(js-mode . lsp-deferred) (js-mode . lsp-deferred)
(json-mode . lsp-deferred)
(gdscript-mode . lsp-deferred) (gdscript-mode . lsp-deferred)
(rust-mode . lsp-deferred) (rust-mode . lsp-deferred)
:commands :commands