~magic_rb/dotfiles

bbf97117ff032b8c151cedbbe64801f0954b5f12 — Magic_RB 1 year, 6 months ago 8ce216d
Add fix for magit and Emacs in daemon mode

Signed-off-by: Magic_RB <magic_rb@redalder.org>
1 files changed, 13 insertions(+), 1 deletions(-)

M emacs-lisp/magit.org
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