<commit_before>(require 'magit)

(setq git-commit-setup-hook '(git-commit-save-message
                              git-commit-setup-changelog-support
                              git-commit-turn-on-auto-fill
                              git-commit-turn-on-flyspell
                              git-commit-propertize-diff
                              with-editor-usage-message)
      git-commit-summary-max-length 60)

(setq global-magit-file-mode t
      magit-refresh-verbose t
      magit-auto-revert-immediately t
      magit-auto-revert-mode t
      magit-completing-read-function 'ivy-completing-read
      magit-push-always-verify nil
      magit-push-arguments (quote ("--set-upstream"))
      magit-save-repository-buffers (quote dontask))

;; disable magit-insert-tags as it's a performance hog for magit-refs
(setq magit-refs-sections-hook
      '(magit-insert-error-header
        magit-insert-branch-description
        magit-insert-local-branches
        magit-insert-remote-branches
        ;; magit-insert-tags
        ))

;; modified from https://github.com/kyleam/emacs.d/blob/master/lisp/km-hydra.el
(defhydra hydra-smerge (:hint nil :pre (smerge-mode 1))<commit_msg>Disable tag loading, it's faster<commit_after>(require 'magit)

(setq git-commit-setup-hook '(git-commit-save-message
                              git-commit-setup-changelog-support
                              git-commit-turn-on-auto-fill
                              git-commit-turn-on-flyspell
                              git-commit-propertize-diff
                              with-editor-usage-message)
      git-commit-summary-max-length 60)

(setq global-magit-file-mode t
      magit-refresh-verbose t
      magit-auto-revert-immediately t
      magit-auto-revert-mode t
      magit-completing-read-function 'ivy-completing-read
      magit-push-always-verify nil
      magit-push-arguments (quote ("--set-upstream"))
      magit-save-repository-buffers (quote dontask))

;; disable magit-insert-tags as it's a performance hog for magit-refs

(setq magit-status-headers-hook
      '(magit-insert-error-header
        magit-insert-diff-filter-header
        magit-insert-head-branch-header
        magit-insert-upstream-branch-header
        magit-insert-push-branch-header
        ;; magit-insert-tags-header
        ))

(setq magit-refs-sections-hook
      '(magit-insert-error-header
        magit-insert-branch-description
        magit-insert-local-branches
        magit-insert-remote-branches
        ;; magit-insert-tags
        ))

;; modified from https://github.com/kyleam/emacs.d/blob/master/lisp/km-hydra.el
(defhydra hydra-smerge (:hint nil :pre (smerge-mode 1))
{'fraction_non_alphanumeric': 0.11119402985074626, 'fraction_numerical': 0.002238805970149254, 'mean_word_length': 2.0056053811659194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3675731', 'n_tokens_mistral': 858, 'n_tokens_neox': 824, 'n_words': 125}