<commit_before>;; * Web mode

(my/ensure-package-installed 'web-mode)
(my/ensure-package-installed 'company-web)

(require 'web-mode)
(require 'company-web)
(require 'company-web-html)

;; ** Extensions

(add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.hbs\\'" . web-mode))

;; ** Indent

(setq web-mode-markup-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2)
(setq web-mode-attr-indent-offset 2)

;; ** Auto

(setq web-mode-enable-auto-indentation t)
(setq web-mode-enable-auto-closing t)
(setq web-mode-enable-auto-pairing t)

;; ** Company

(add-hook 'web-mode-hook (lambda ()
                           (set(make-local-variable 'company-backends) '(company-web-html))
                           (company-mode t)))<commit_msg>[Emacs] Cleaner web-mode.el file style<commit_after>;; * Web mode

(my/ensure-package-installed 'web-mode)
(my/ensure-package-installed 'company-web)

(require 'web-mode)
(require 'company-web)
(require 'company-web-html)

;; ** Extensions

(add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.hbs\\'" . web-mode))

;; ** Indent

(setq web-mode-markup-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2)
(setq web-mode-attr-indent-offset 2)

;; ** Auto

(setq web-mode-enable-auto-indentation t)
(setq web-mode-enable-auto-closing t)
(setq web-mode-enable-auto-pairing t)

;; ** Company

(add-hook 'web-mode-hook (lambda ()
                           (set (make-local-variable 'company-backends)
                                '(company-web-html))))
{'fraction_non_alphanumeric': 0.20193401592718999, 'fraction_numerical': 0.004550625711035267, 'mean_word_length': 2.979638009049774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5426236', 'n_tokens_mistral': 682, 'n_tokens_neox': 664, 'n_words': 118}