<commit_before>;;; lang/elixir/config.el -*- lexical-binding: t; -*-

(after! projectile
  (add-to-list 'projectile-project-root-files "mix.exs"))

(after! highlight-numbers
  (puthash 'elixir-mode
    (rx (and symbol-start
            (? "-")
            (+ digit)
            (0+ (and "_" (= 3 digit)))
            symbol-end))
    highlight-numbers-modelist))

;;
;;; Packages

(use-package! elixir-mode
  :defer t
  :init<commit_msg>Update config.el<commit_after>;;; lang/elixir/config.el -*- lexical-binding: t; -*-

(after! projectile
  (add-to-list 'projectile-project-root-files "mix.exs"))

(after! highlight-numbers
  (puthash 'elixir-mode
           "\\_<-?[[:digit:]]+\\(?:_[[:digit:]]\\{3\\}\\)*\\_>"
           highlight-numbers-modelist))

;;
;;; Packages

(use-package! elixir-mode
  :defer t
  :init
{'fraction_non_alphanumeric': 0.20833333333333334, 'fraction_numerical': 0.003676470588235294, 'mean_word_length': 2.68018018018018, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5083056', 'n_tokens_mistral': 311, 'n_tokens_neox': 300, 'n_words': 50}