<commit_before>;; major modes

;; magit
(use-package magit
  :ensure t
  :bind ("C-x g" . magit-status)
  :config
  (setq magit-process-popup-time -1
        magit-auto-revert-mode-lighter nil
        magit-push-always-verify nil
        magit-save-repository-buffers 'dontask
        magit-refs-show-commit-count 'all)
  (setq magit-display-buffer-function
        (lambda (buffer)
          (if (or
               ;; the original should stay alive, so we can't go fullscreen
               magit-display-buffer-noselect
               ;; don't go fullscreen for certain magit buffers if current
               ;; buffer is a magit buffer (we're conforming to
               ;; `magit-display-buffer-traditional')
               (and (derived-mode-p 'magit-mode)
                    (not (memq (with-current-buffer buffer major-mode)
                               '(magit-process-mode
                                 magit-revision-mode
                                 magit-diff-mode
                                 magit-stash-mode
                                 magit-status-mode)))))
              ;; open buffer according to original magit rules
              (magit-display-buffer-traditional buffer)
            ;; open buffer in fullscreen
            (delete-other-windows)
            ;; make sure the window isn't dedicated, otherwise
            ;; `set-window-buffer' throws an error
            (set-window-dedicated-p nil nil)
            (set-window-buffer nil buffer)
            ;; return buffer's window
            (get-buffer-window buffer))))
  )


;; default modes
(use-package org
  :ensure t
  :mode ("\\\.org\\\'" . org-mode)
  :init
  (setq initial-major-mode 'org-mode)
  (setq org-startup-indented t)
  (setq org-hide-leading-stars t)
  (setq org-indent-indentation-per-level 2)
  (setq org-startup-folded 'content)
  :config
  (setq-default major-mode 'org-mode)
  (setq org-blank-before-new-entry '((heading . nil)
                                     (plain-list-item . auto)))
  ;; tag column
  (setq org-tags-column -70)
  ;; dependencies
  (setq org-enforce-todo-dependencies t)
  ;; make clock history persistent
  (setq org-clock-persist 'history)
  ;; Todo states
  (setq org-todo-keywords
        '((sequence "TODO(t)" "|" "WAITING(w)" "DONE(d)")))
  ;; priorities
  (setq org-default-priority 67) ;C
  ;; highlight math
  (setf org-highlight-latex-and-related '(latex entities))
<commit_msg>more git modes<commit_after>;; major modes

;; magit
(use-package magit
  :ensure t
  :bind ("C-x g" . magit-status)
  :config
  (setq magit-process-popup-time -1
        magit-auto-revert-mode-lighter nil
        magit-push-always-verify nil
        magit-save-repository-buffers 'dontask
        magit-refs-show-commit-count 'all)
  (setq magit-display-buffer-function
        (lambda (buffer)
          (if (or
               ;; the original should stay alive, so we can't go fullscreen
               magit-display-buffer-noselect
               ;; don't go fullscreen for certain magit buffers if current
               ;; buffer is a magit buffer (we're conforming to
               ;; `magit-display-buffer-traditional')
               (and (derived-mode-p 'magit-mode)
                    (not (memq (with-current-buffer buffer major-mode)
                               '(magit-process-mode
                                 magit-revision-mode
                                 magit-diff-mode
                                 magit-stash-mode
                                 magit-status-mode)))))
              ;; open buffer according to original magit rules
              (magit-display-buffer-traditional buffer)
            ;; open buffer in fullscreen
            (delete-other-windows)
            ;; make sure the window isn't dedicated, otherwise
            ;; `set-window-buffer' throws an error
            (set-window-dedicated-p nil nil)
            (set-window-buffer nil buffer)
            ;; return buffer's window
            (get-buffer-window buffer))))
  )

(use-package what-the-commit            ; Insert random commit messages
  :ensure t
  :bind (("C-c w" . what-the-commit-insert)
         ("C-c v w" . what-the-commit)))

(use-package gitconfig-mode             ; Git configuration mode
  :ensure t
  :defer t)

(use-package gitignore-mode             ; .gitignore mode
  :ensure t
  :defer t)


;; default modes
(use-package org
  :ensure t
  :mode ("\\\.org\\\'" . org-mode)
  :init
  (setq initial-major-mode 'org-mode)
  (setq org-startup-indented t)
  (setq org-hide-leading-stars t)
  (setq org-indent-indentation-per-level 2)
  (setq org-startup-folded 'content)
  :config
  (setq-default major-mode 'org-mode)
  (setq org-blank-before-new-entry '((heading . nil)
                                     (plain-list-item . auto)))
  ;; tag column
  (setq org-tags-column -70)
  ;; dependencies
  (setq org-enforce-todo-dependencies t)
  ;; make clock history persistent
  (setq org-clock-persist 'history)
  ;; Todo states
  (setq org-todo-keywords
        '((sequence "TODO(t)" "|" "WAITING(w)" "DONE(d)")))
  ;; priorities
  (setq org-default-priority 67) ;C
  ;; highlight math
  (setf org-highlight-latex-and-related '(latex entities))

{'fraction_non_alphanumeric': 0.11609195402298851, 'fraction_numerical': 0.0022988505747126436, 'mean_word_length': 1.8236884802595998, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '87364', 'n_tokens_mistral': 1636, 'n_tokens_neox': 1553, 'n_words': 391}