Change multi-web-mode to web-mode.
This commit is contained in:
parent
8d430b9d3c
commit
cddf20683e
@ -292,15 +292,17 @@
|
|||||||
;; Terminal
|
;; Terminal
|
||||||
(use-package vterm :ensure t :defer t :straight t)
|
(use-package vterm :ensure t :defer t :straight t)
|
||||||
|
|
||||||
(use-package multi-web-mode
|
(use-package web-mode
|
||||||
:straight t
|
:straight t
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq mweb-default-major-mode 'html-mode)
|
(setq web-mode-markup-indent-offset 2
|
||||||
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
|
web-mode-css-indent-offset 2
|
||||||
(js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
|
web-mode-code-indent-offset 2
|
||||||
(css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))
|
web-mode-enable-current-element-highlight t
|
||||||
(setq mweb-filename-extensions '("php" "htm" "html")))
|
web-mode-enable-current-column-highlight t)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
;; Cuando iniicias un atajo de teclas te muestra las posibilidades
|
;; Cuando iniicias un atajo de teclas te muestra las posibilidades
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
(global-set-key (kbd "C-x mj") 'js-mode)
|
(global-set-key (kbd "C-x mj") 'js-mode)
|
||||||
(global-set-key (kbd "C-x mp") 'php-mode)
|
(global-set-key (kbd "C-x mp") 'php-mode)
|
||||||
(global-set-key (kbd "C-x mr") 'rust-mode)
|
(global-set-key (kbd "C-x mr") 'rust-mode)
|
||||||
(global-set-key (kbd "C-x mw") 'multi-web-mode)
|
(global-set-key (kbd "C-x mw") 'web-mode)
|
||||||
|
|
||||||
;; Atajos de windmove
|
;; Atajos de windmove
|
||||||
(global-set-key (kbd "C-x <left>") 'windmove-left)
|
(global-set-key (kbd "C-x <left>") 'windmove-left)
|
||||||
|
@ -56,7 +56,8 @@
|
|||||||
(with-no-warnings
|
(with-no-warnings
|
||||||
;; Remove php extension on form lsp
|
;; Remove php extension on form lsp
|
||||||
(setq lsp-language-id-configuration
|
(setq lsp-language-id-configuration
|
||||||
(remove '(".*\\.php$" . "php") lsp-language-id-configuration))
|
(remove '(".*\\.php$" . "php") lsp-language-id-configuration))
|
||||||
|
(add-to-list 'lsp-language-id-configuration '(web-mode . "php"))
|
||||||
|
|
||||||
;; Disable `lsp-mode' in `git-timemachine-mode'
|
;; Disable `lsp-mode' in `git-timemachine-mode'
|
||||||
(defun my-lsp--init-if-visible (fn &rest args)
|
(defun my-lsp--init-if-visible (fn &rest args)
|
||||||
|
Loading…
Reference in New Issue
Block a user