<commit_before>;;; setup-modes.el --- Modes that don't require separate files.
;;; Commentary:
;;; Code:

;; I used to have a prefix for the mode toggle, but I think hydras can be very useful, because the help can be displayed vertically.
(defhydra mode-toggle (:color blue
                       :columns 1)
  "Toggle one of these modes"
  ("e" evil-mode "Evil mode")
  ("w" whitespace-mode "Whitespace mode")
  ("l" linum-relative-mode "Linum relative")
  ("c" color-identifiers-mode "Color identifiers mode")
  ("v" visual-line-mode "Visual line mode")
  ("p" projectile-mode "Projectile")
  ("k" which-key-mode "Which key")
  ("h" global-hl-line-mode "Highlight line")
  ("a" artist-mode "Artist mode")
  ("s" key-chord-mode "Key chord mode")
  ("q" nil "quit"))

(global-set-key (kbd "<f6>") 'mode-toggle/body)

;; yaml-mode. mainly for syntax highlighting
(use-package yaml-mode
  :ensure t ;; seems like overkill
  :config<commit_msg>Fix hl-line mode and bind mode hydra to meta-m map<commit_after>;;; setup-modes.el --- Modes that don't require separate files.
;;; Commentary:
;;; Code:

;; I used to have a prefix for the mode toggle, but I think hydras can be very useful, because the help can be displayed vertically.
(defhydra mode-toggle (:color blue
                       :columns 1)
  "Toggle one of these modes"
  ("e" evil-mode "Evil mode")
  ("w" whitespace-mode "Whitespace mode")
  ("l" linum-relative-mode "Linum relative")
  ("c" color-identifiers-mode "Color identifiers mode")
  ("v" visual-line-mode "Visual line mode")
  ("p" projectile-mode "Projectile")
  ("k" which-key-mode "Which key")
  ("h" hl-line-mode "Highlight line")
  ("a" artist-mode "Artist mode")
  ("s" key-chord-mode "Key chord mode")
  ("q" nil "quit"))

(define-key meta-m-map (kbd "m") 'mode-toggle/body)

;; yaml-mode. mainly for syntax highlighting
(use-package yaml-mode
  :ensure t ;; seems like overkill
  :config
{'fraction_non_alphanumeric': 0.14822546972860126, 'fraction_numerical': 0.0015657620041753654, 'mean_word_length': 3.641646489104116, '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': '5284021', 'n_tokens_mistral': 657, 'n_tokens_neox': 626, 'n_words': 225}