diff --git a/configs/init-packages.el b/configs/init-packages.el index f126024..2ebbf69 100644 --- a/configs/init-packages.el +++ b/configs/init-packages.el @@ -238,18 +238,6 @@ ;; Terminal (use-package vterm :ensure t :defer t :straight t) -(use-package web-mode - :straight t - :defer t - :config - (setq web-mode-markup-indent-offset 2 - web-mode-css-indent-offset 2 - web-mode-code-indent-offset 2 - web-mode-enable-current-element-highlight t - web-mode-enable-current-column-highlight t) - -) - ;; Cuando iniicias un atajo de teclas te muestra las posibilidades (use-package which-key :defer t diff --git a/configs/lang-html.el b/configs/lang-html.el new file mode 100644 index 0000000..9e413a6 --- /dev/null +++ b/configs/lang-html.el @@ -0,0 +1,31 @@ +;;; lang-html.el --- ConfiguraciĆ³n para el lenguaje PHP -*- lexical-binding: t -*- + +;; Author: kj +;; URL: https://git.kj2.me/kj/confi-emacs-actual + +;;; Commentary: + +;;; Code: + +(use-package web-mode + :straight t + :defer t + :config + (setq web-mode-markup-indent-offset 2 + web-mode-css-indent-offset 2 + web-mode-code-indent-offset 2 + web-mode-enable-current-element-highlight t + web-mode-enable-current-column-highlight t) + + ) + + +(use-package auto-rename-tag + :straight t (auto-rename-tag :type git :host github :repo "jcs-elpa/auto-rename-tag") + :defer t + :hook ((html-mode . auto-rename-tag-mode) + (web-mode . auto-rename-tag-mode)) + ) + +(provide 'lang-html) +;;; lang-html.el ends here diff --git a/init.el b/init.el index ff5c683..f70e06b 100644 --- a/init.el +++ b/init.el @@ -32,6 +32,7 @@ (require 'lang-js) (require 'lang-go) (require 'lang-rust) +(require 'lang-html) (provide 'init) ;;; init.el ends here