<commit_before>(defconst mfa-mwim-packages '(mwim))

(defun mfa-mwim/init-mwim ()
  (use-package mwim
    :defer t
    :init
    (progn
      (global-set-key (kbd "C-a") #'mwim-beginning-of-code-or-line)
      (global-set-key (kbd "C-e") #'mwim-end-of-code-or-line)
      (global-set-key (kbd "<home>") #'mwim-beginning-of-line-or-code)
      (global-set-key (kbd "<end>") #'mwim-end-of-line-or-code)
      (with-eval-after-load 'evil
        (define-key evil-normal-state-map (kbd "C-e") #'mwim-end-of-line-or-code)
        (define-key evil-motion-state-map (kbd "C-e") #'mwim-end-of-line-or-code)
        (define-key evil-insert-state-map (kbd "C-e") #'mwim-end-of-line-or-code)
        (define-key evil-visual-state-map (kbd "C-e") #'mwim-end-of-line-or-code)))))<commit_msg>Make mwim motions play nice with evil repeat<commit_after>(defconst mfa-mwim-packages '(mwim))

(defun mfa-mwim/init-mwim ()
  (use-package mwim
    :defer t
    :init
    (progn
      (global-set-key (kbd "C-a") #'mwim-beginning)
      (global-set-key (kbd "C-e") #'mwim-end)
      (global-set-key (kbd "<home>") #'mwim-beginning)
      (global-set-key (kbd "<end>") #'mwim-end)
      (with-eval-after-load 'evil
        (define-key evil-normal-state-map (kbd "C-e") #'mwim-end)
        (define-key evil-motion-state-map (kbd "C-e") #'mwim-end)
        (define-key evil-insert-state-map (kbd "C-e") #'mwim-end)
        (define-key evil-visual-state-map (kbd "C-e") #'mwim-end)
        (evil-declare-motion 'mwim-beginning)
        (evil-declare-motion 'mwim-end)))))
{'fraction_non_alphanumeric': 0.2045307443365696, 'fraction_numerical': 0.0, 'mean_word_length': 2.7524271844660193, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2089548', 'n_tokens_mistral': 694, 'n_tokens_neox': 658, 'n_words': 108}