Skip to content

Commit

Permalink
feat(emacs): magit: fetch automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed May 12, 2024
1 parent ae3ce30 commit d681e06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,11 @@
:init
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
(defun magit-auto-fetch ()
(interactive)
(magit-fetch-all ())
(forge-pull))
(advice-add 'magit-status :after #'magit-auto-fetch)
:custom
(magit-no-confirm '(set-and-push stage-all-changes unstage-all-changes))
(magit-bury-buffer-function #'magit-restore-window-configuration)
Expand Down

0 comments on commit d681e06

Please sign in to comment.