Agregado web-mode para usarlo en lugar de html-mode.

This commit is contained in:
kj 2020-08-04 01:14:24 -04:00
parent 82819b9ea3
commit 87aa5aa5b8
5 changed files with 14350 additions and 2 deletions

View File

@ -0,0 +1,27 @@
;;; web-mode-autoloads.el --- automatically extracted autoloads
;;
;;; Code:
(add-to-list 'load-path (directory-file-name
(or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "web-mode" "web-mode.el" (0 0 0 0))
;;; Generated autoloads from web-mode.el
(autoload 'web-mode "web-mode" "\
Major mode for editing web templates.
\(fn)" t nil)
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "web-mode" '("web-mode-")))
;;;***
;; Local Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; coding: utf-8
;; End:
;;; web-mode-autoloads.el ends here

View File

@ -0,0 +1,2 @@
;;; -*- no-byte-compile: t -*-
(define-package "web-mode" "20200612.1038" "major mode for editing web templates" '((emacs "23.1")) :commit "60ffd878c4371644bd964f00fea38054645e3e47" :keywords '("languages") :authors '(("François-Xavier Bois <fxbois AT Google Mail Service>")) :maintainer '("François-Xavier Bois") :url "http://web-mode.org")

File diff suppressed because it is too large Load Diff

Binary file not shown.

11
init.el
View File

@ -51,7 +51,7 @@
'(magit-diff-use-overlays nil) '(magit-diff-use-overlays nil)
'(package-selected-packages '(package-selected-packages
(quote (quote
(multi-web-mode spacemacs-theme flycheck ac-emmet markdown-preview-mode multiple-cursors git-gutter powerline ample-zen-theme monokai-theme dracula-theme auto-complete neotree all-the-icons spinner markdown-mode lv ht f evil dash-functional))) (web-mode multi-web-mode spacemacs-theme flycheck ac-emmet markdown-preview-mode multiple-cursors git-gutter powerline ample-zen-theme monokai-theme dracula-theme auto-complete neotree all-the-icons spinner markdown-mode lv ht f evil dash-functional)))
'(pdf-view-midnight-colors (quote ("#b2b2b2" . "#292b2e"))) '(pdf-view-midnight-colors (quote ("#b2b2b2" . "#292b2e")))
'(pos-tip-background-color "#FFFACE") '(pos-tip-background-color "#FFFACE")
'(pos-tip-foreground-color "#272822") '(pos-tip-foreground-color "#272822")
@ -137,9 +137,16 @@
(global-set-key (kbd "C-S-d") 'mc/mark-all-like-this) ;Seleccionar todos como el actual (global-set-key (kbd "C-S-d") 'mc/mark-all-like-this) ;Seleccionar todos como el actual
(global-set-key (kbd "C-S-<mouse-1>") 'mc/add-cursor-on-click) ;Añadir cursor con clics (Shift+CTRL+Clic) (global-set-key (kbd "C-S-<mouse-1>") 'mc/add-cursor-on-click) ;Añadir cursor con clics (Shift+CTRL+Clic)
(require 'web-mode)
(setq web-mode-css-indent-offset 2
web-mode-code-indent-offset 2
web-mode-sql-indent-offset 2
web-mode-script-padding 2
web-mode-markup-indent-offset 2)
; Cambiar de modos en un archivo que tiene php, html, css y js a la vez. ; Cambiar de modos en un archivo que tiene php, html, css y js a la vez.
(require 'multi-web-mode) (require 'multi-web-mode)
(setq mweb-default-major-mode 'html-mode) (setq mweb-default-major-mode 'web-mode)
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>") (setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
(js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>") (js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
(css-mode "<style +type=\"text/css\"[^>]*>" "</style>"))) (css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))