Do not refresh non-selected magit status buffers on Windows

This setting is experimental and a test whether performance on Windows can be
increased this way without causing too much confusion.
This commit is contained in:
Daniel - 2023-02-19 12:44:46 +01:00
parent b5f03ddf96
commit 7fb9b84449
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 10 additions and 2 deletions

12
init.el
View File

@ -1532,8 +1532,16 @@ point to the beginning of buffer first."
:ensure t
:commands (magit-status
magit-list-repositories)
:init (setq magit-diff-refine-hunk nil
magit-commit-show-diff nil)
:init (progn
(setq magit-diff-refine-hunk nil
magit-commit-show-diff nil)
(when on-windows
;; Experimental: on Windows, do not refresh magit-status-buffers
;; that are not select, to increase performance.
(setq magit-refresh-status-buffer nil)))
:config (progn
(when (fboundp 'global-magit-file-mode)
(global-magit-file-mode -1))