<commit_before>;;; +programming.el --- Description -*- lexical-binding: t; -*-

;;;; File Templates

;;; file-templates/snippets
;; (use-package yasnippet)

;; tree-sitter
(use-package tree-sitter-langs
  :ensure t)

(use-package tree-sitter
  :ensure t
  :after tree-sitter-langs
  :config
  (global-tree-sitter-mode)
  (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))

;;;; Completion
(use-package company)
(add-hook 'after-init-hook #'global-company-mode)

;;;; linting

;;; syntax
(use-package flycheck)
(use-package flycheck-popup-tip)
(use-package flycheck-posframe)

;;; spelling
;; ispell
;; spell-fu
(use-package flyspell
  :defer t)
(use-package flyspell-correct-ivy
  :after (flyspell ivy))
(use-package flyspell-correct-popup
  :after (flyspell ivy))<commit_msg>emacs: refactor tree-sitter hook definition. Add prog-mode hook<commit_after>;;; +programming.el --- Description -*- lexical-binding: t; -*-

;;;; File Templates

;;; file-templates/snippets
;; (use-package yasnippet)

;; tree-sitter
(use-package tree-sitter-langs
  :ensure t)

(use-package tree-sitter
  :ensure t
  :after tree-sitter-langs
  :config
  (global-tree-sitter-mode)
  :hook (prog-mode . turn-on-tree-sitter-mode)
  :hook (tree-sitter-after-on . tree-sitter-hl-mode))
;;;; Completion
(use-package company)
(add-hook 'after-init-hook #'global-company-mode)

;;;; linting

;;; syntax
(use-package flycheck)
(use-package flycheck-popup-tip)
(use-package flycheck-posframe)

;;; spelling
;; ispell
;; spell-fu
(use-package flyspell
  :defer t)
(use-package flyspell-correct-ivy
  :after (flyspell ivy))
(use-package flyspell-correct-popup
  :after (flyspell ivy))
{'fraction_non_alphanumeric': 0.1675708257986739, 'fraction_numerical': 0.0, 'mean_word_length': 4.286624203821656, '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': '667485', 'n_tokens_mistral': 627, 'n_tokens_neox': 622, 'n_words': 123}