M emacs-lisp/magit.org => emacs-lisp/magit.org +13 -1
@@ 11,6 11,18 @@
~magit~ is literally the best package right after OrgMode of course. Therefore enable it.
#+BEGIN_SRC emacs-lisp
+ (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)
+ :straight t
+ :config
+ (add-hook 'after-make-frame-functions #'magit-reset-visibility-indicators))
#+END_SRC