home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit ad986b30fd1be13844836b9384f397a4817d5a9c
parent 9270ffab0d46cadb776840745c67d569e6e7e09a
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed,  7 Feb 2024 18:54:07 +0100

tools/emacs: do not refresh magit-status on save

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-vcs.el | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/tools/emacs/config/config-vcs.el b/tools/emacs/config/config-vcs.el @@ -82,7 +82,8 @@ (setq-default magit-save-repository-buffers 'dontask magit-refs-show-commit-count 'all magit-branch-prefer-remote-upstream '("main") - magit-display-buffer-function #'magit-display-buffer-traditional) + magit-display-buffer-function #'magit-display-buffer-traditional + magit-refresh-status-buffer nil) (magit-define-popup-option 'magit-rebase-popup ?S "Sign using gpg" "--gpg-sign=" #'magit-read-gpg-secret-key) @@ -116,10 +117,7 @@ (setq-default magit-module-sections-nested nil) ;; Show refined hunks during diffs - (set-default 'magit-diff-refine-hunk t) - - ;; Refresh `magit-status' after saving a buffer - (add-hook 'after-save-hook #'magit-after-save-refresh-status)) + (set-default 'magit-diff-refine-hunk t)) (use-package git-commit :after magit