Apply minor magit performance improvements

As suggested by https://coredumped.dev/2025/06/18/making-tramp-go-brrrr./, even though I am not
using magit over TRAMP.
This commit is contained in:
Daniel Borchmann 2025-06-28 09:52:15 +02:00
parent df70776a8b
commit f8deccc5fe
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

13
init.el
View File

@ -1630,12 +1630,14 @@ Note that this workaround is incomplete, as explained in this comment."
magit-list-repositories)
:init (progn
(setq magit-diff-refine-hunk nil
(setopt magit-diff-refine-hunk nil
magit-commit-show-diff nil
magit-repository-directories '(("~/" . 0)
("~/.emacs.d" . 0)
("~/Documents/" . 3)
("~/.local/share/dotfiles" . 0))
magit-repolist-columns '(("Name" 20 magit-repolist-column-ident
())
("S" 1 magit-repolist-column-flag
@ -1649,12 +1651,13 @@ Note that this workaround is incomplete, as explained in this comment."
("Version" 35 magit-repolist-column-version
((:sort magit-repolist-version<)))
("Path" 99 magit-repolist-column-path
())))
()))
magit-branch-direct-configure nil)
(when on-windows
;; Experimental: on Windows, do not refresh magit-status-buffers
;; that are not selected, to increase performance.
(setq magit-refresh-status-buffer nil)))
;; Increase performance by not automatically refreshing status buffers
(setopt magit-refresh-status-buffer nil)))
:config (progn
(when (fboundp 'global-magit-file-mode)