From 28509f06a05e2a8684c65cb79d7590312e657d85 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 9 Aug 2017 10:55:55 +0100 Subject: [PATCH] el/dot-emacs.el: Don't prompt to save other buffers on WIP save. I have `magit-wip-after-save-mode' on, to save my changes into a magic Git branch while I'm working. This stimulates a commit on each save, and Magit is assiduous in asking whether I want to save other buffers visiting files tracked by the project. I don't -- and the confirmation prompt discombobulates me every time it appears. Tell it this by advising `magit-wip-commit-buffer-file' appropriately. --- el/dot-emacs.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index c24d9ec..5314fd9 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -3929,6 +3929,10 @@ This allows you to pass a list of arguments through `ansi-term'." magit-revision-mode-refresh-popup)) (magit-define-popup-switch popup ?R "Reverse diff" "-R")))) +(defadvice magit-wip-commit-buffer-file + (around mdw-just-this-buffer activate compile) + (let ((magit-save-repository-buffers nil)) ad-do-it)) + (setq magit-repolist-columns '(("Name" 16 magit-repolist-column-ident nil) ("Version" 18 magit-repolist-column-version nil) -- 2.11.0