summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-06-10 18:17:07 +0200
committerAlan Pearce2023-06-10 18:17:07 +0200
commitb302930a518850c06d68da25bc38f3e254dbecc4 (patch)
tree266b6da24de4ad07bb124df9098c7a4aee79f234
parent5f2b28d1ca29bd230b7f1085e044d703e69e8fba (diff)
downloadnixfiles-b302930a518850c06d68da25bc38f3e254dbecc4.tar.lz
nixfiles-b302930a518850c06d68da25bc38f3e254dbecc4.tar.zst
nixfiles-b302930a518850c06d68da25bc38f3e254dbecc4.zip
Emacs: auto-refresh magit status buffers
-rw-r--r--user/emacs/init.el4
-rw-r--r--user/settings/emacs.nix1
2 files changed, 5 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 84c905b1..b78c30cd 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -943,6 +943,10 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (remove-hook 'magit-section-highlight-hook 'magit-section-highlight-selection)
             (remove-hook 'magit-section-highlight-hook 'magit-diff-highlight)))
 
+(use-package magit-filenotify
+  :after magit
+  :ghook '(magit-status-mode-hook))
+
 (use-package git-gutter-fringe
   :defer 5
   :config (progn
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 5b703ce7..12eafe0c 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -138,6 +138,7 @@ in
         lispy
         lispyville
         magit
+        magit-filenotify
         markdown-mode
         marginalia
         nerd-icons