<commit_before>;;; lang/web/+html.el -*- lexical-binding: t; -*-

(def-package! web-mode
  :mode "\\.p?html?$"
  :mode "\\.\\(?:tpl\\|blade\\)\\(\\.php\\)?$"
  :mode "\\.erb$"
  :mode "\\.jsp$"
  :mode "\\.as[cp]x$"
  :mode "\\.mustache$"
  :mode "\\.tsx$"
  :mode "\\.vue$"
  :mode "\\.twig$"
  :mode "wp-content/themes/.+/.+\\.php$"
  :mode "templates/.+\\.php$"
  :config
  (set! :company-backend 'web-mode '(company-web-html company-yasnippet))
  (setq web-mode-enable-html-entities-fontification t
        web-mode-enable-auto-quoting nil)

  (map! :map web-mode-map
        (:localleader
          :desc "Rehighlight buffer" :n "h" #'web-mode-buffer-highlight
          :desc "Indent buffer"      :n "i" #'web-mode-buffer-indent

          (:desc "attribute" :prefix "a"
            :desc "Beginning" :n "b" #'web-mode-attribute-beginning
            :desc "End"       :n "e" #'web-mode-attribute-end
            :desc "Insert"    :n "i" #'web-mode-attribute-insert
            :desc "Next"      :n "n" #'web-mode-attribute-next
            :desc "Select"    :n "s" #'web-mode-attribute-select<commit_msg>lang/web: add *.jinja to web-mode<commit_after>;;; lang/web/+html.el -*- lexical-binding: t; -*-

(def-package! web-mode
  :mode "\\.p?html?$"
  :mode "\\.\\(?:tpl\\|blade\\)\\(\\.php\\)?$"
  :mode "\\.erb$"
  :mode "\\.jsp$"
  :mode "\\.as[cp]x$"
  :mode "\\.mustache$"
  :mode "\\.tsx$"
  :mode "\\.vue$"
  :mode "\\.twig$"
  :mode "\\.jinja$"
  :mode "wp-content/themes/.+/.+\\.php$"
  :mode "templates/.+\\.php$"
  :config
  (set! :company-backend 'web-mode '(company-web-html company-yasnippet))
  (setq web-mode-enable-html-entities-fontification t
        web-mode-enable-auto-quoting nil)

  (map! :map web-mode-map
        (:localleader
          :desc "Rehighlight buffer" :n "h" #'web-mode-buffer-highlight
          :desc "Indent buffer"      :n "i" #'web-mode-buffer-indent

          (:desc "attribute" :prefix "a"
            :desc "Beginning" :n "b" #'web-mode-attribute-beginning
            :desc "End"       :n "e" #'web-mode-attribute-end
            :desc "Insert"    :n "i" #'web-mode-attribute-insert
            :desc "Next"      :n "n" #'web-mode-attribute-next
            :desc "Select"    :n "s" #'web-mode-attribute-select
{'fraction_non_alphanumeric': 0.22811671087533156, 'fraction_numerical': 0.0, 'mean_word_length': 2.1918194640338506, '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': '5686759', 'n_tokens_mistral': 910, 'n_tokens_neox': 865, 'n_words': 173}