dotfiles/emacs-lisp/magit.org
2023-09-16 19:54:12 +02:00

919 B

Magit

#

magit is literally the best package right after OrgMode of course. Therefore enable it.

  (defun magit-reset-visibility-indicators (frame)
    (with-selected-frame frame
      (when (display-graphic-p)
        (setq magit-section-visibility-indicator
              (if (window-system)
                  '(magit-fringe-bitmap> . magit-fringe-bitmapv)
                (cons (if (char-displayable-p ?…) "…" "...")
                      t)))
        (remove-hook 'after-make-frame-functions #'magit-reset-visibility-indicators))))

  (use-package magit
    :straight t
    :config
    (add-hook 'after-make-frame-functions #'magit-reset-visibility-indicators))