From a1edb7d39b6561a493c151a47b24cddf5378f1f9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 26 May 2024 14:30:54 +0200 Subject: emacs: insist that magit should not enable magit-auto-revert-mode seems as though it should have been fixed in https://github.com/magit/magit/pull/4891, which is the case for the test provided there, but does not seem to be the case for me --- user/emacs/init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'user') diff --git a/user/emacs/init.el b/user/emacs/init.el index a69fe8d1..438e5487 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -646,11 +646,10 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve ;;;; Auto-reloading (use-package autorevert - :defer 1 :config (progn (setq auto-revert-verbose nil auto-revert-use-notify t) - (global-auto-revert-mode t))) + (global-auto-revert-mode 1))) (setq delete-by-moving-to-trash t) @@ -1001,12 +1000,15 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve :general ([remap project-vc-dir] #'magit-project-status) (:keymaps 'project-prefix-map "m" #'magit-project-status) :init (progn + (defvar magit-auto-revert-mode nil) + (setq magit-auto-revert-mode nil) (require 'project) (add-to-list 'project-switch-commands '(magit-project-status "Magit") t)) :config (progn (setq magit-section-visibility-indicator nil magit-diff-refine-hunk t - magit-auto-revert-immediately t + magit-auto-revert-mode nil + magit-auto-revert-immediately nil ; unnecessary when global-auto-revert-mode is enabled magit-display-buffer-function #'magit-display-buffer-fullcolumn-most-v1) (remove-hook 'magit-status-sections-hook 'magit-insert-tags-header) (remove-hook 'magit-section-highlight-hook 'magit-section-highlight) -- cgit 1.4.1