mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
29 lines
919 B
Org Mode
29 lines
919 B
Org Mode
|
:PROPERTIES:
|
||
|
:ID: aa25248c-197c-4bf5-8fc1-aea93008e194
|
||
|
:END:
|
||
|
#+title: Magit
|
||
|
#+filetags: emacs-load
|
||
|
|
||
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
||
|
#
|
||
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||
|
|
||
|
~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
|
||
|
:config
|
||
|
(add-hook 'after-make-frame-functions #'magit-reset-visibility-indicators))
|
||
|
#+END_SRC
|