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:
parent
df70776a8b
commit
f8deccc5fe
49
init.el
49
init.el
@ -1630,31 +1630,34 @@ Note that this workaround is incomplete, as explained in this comment."
|
|||||||
magit-list-repositories)
|
magit-list-repositories)
|
||||||
|
|
||||||
:init (progn
|
:init (progn
|
||||||
(setq magit-diff-refine-hunk nil
|
(setopt magit-diff-refine-hunk nil
|
||||||
magit-commit-show-diff nil
|
magit-commit-show-diff nil
|
||||||
magit-repository-directories '(("~/" . 0)
|
|
||||||
("~/.emacs.d" . 0)
|
magit-repository-directories '(("~/" . 0)
|
||||||
("~/Documents/" . 3)
|
("~/.emacs.d" . 0)
|
||||||
("~/.local/share/dotfiles" . 0))
|
("~/Documents/" . 3)
|
||||||
magit-repolist-columns '(("Name" 20 magit-repolist-column-ident
|
("~/.local/share/dotfiles" . 0))
|
||||||
())
|
|
||||||
("S" 1 magit-repolist-column-flag
|
magit-repolist-columns '(("Name" 20 magit-repolist-column-ident
|
||||||
())
|
())
|
||||||
("B<U" 3 magit-repolist-column-unpulled-from-upstream
|
("S" 1 magit-repolist-column-flag
|
||||||
((:right-align t)
|
())
|
||||||
(:sort <)))
|
("B<U" 3 magit-repolist-column-unpulled-from-upstream
|
||||||
("B>U" 3 magit-repolist-column-unpushed-to-upstream
|
((:right-align t)
|
||||||
((:right-align t)
|
(:sort <)))
|
||||||
(:sort <)))
|
("B>U" 3 magit-repolist-column-unpushed-to-upstream
|
||||||
("Version" 35 magit-repolist-column-version
|
((:right-align t)
|
||||||
((:sort magit-repolist-version<)))
|
(:sort <)))
|
||||||
("Path" 99 magit-repolist-column-path
|
("Version" 35 magit-repolist-column-version
|
||||||
())))
|
((:sort magit-repolist-version<)))
|
||||||
|
("Path" 99 magit-repolist-column-path
|
||||||
|
()))
|
||||||
|
|
||||||
|
magit-branch-direct-configure nil)
|
||||||
|
|
||||||
(when on-windows
|
(when on-windows
|
||||||
;; Experimental: on Windows, do not refresh magit-status-buffers
|
;; Increase performance by not automatically refreshing status buffers
|
||||||
;; that are not selected, to increase performance.
|
(setopt magit-refresh-status-buffer nil)))
|
||||||
(setq magit-refresh-status-buffer nil)))
|
|
||||||
|
|
||||||
:config (progn
|
:config (progn
|
||||||
(when (fboundp 'global-magit-file-mode)
|
(when (fboundp 'global-magit-file-mode)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user