Create a config file for HTML languaje.

This commit is contained in:
kj 2023-04-13 01:57:17 -04:00
parent 5526684a4b
commit 16aab9416c
3 changed files with 32 additions and 12 deletions

View File

@ -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

31
configs/lang-html.el Normal file
View File

@ -0,0 +1,31 @@
;;; lang-html.el --- Configuración para el lenguaje PHP -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; 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

View File

@ -32,6 +32,7 @@
(require 'lang-js)
(require 'lang-go)
(require 'lang-rust)
(require 'lang-html)
(provide 'init)
;;; init.el ends here