Skip to content

Commit

Permalink
tweak(emacs): forge: only forge-pull when forge is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Oct 8, 2024
1 parent 4e20a68 commit 919b44d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@
(defun magit-auto-fetch ()
(interactive)
(magit-fetch-all ())
(forge-pull))
(when (forge-buffer-repository)
(forge-pull)))
(advice-add 'magit-status :after #'magit-auto-fetch)
:custom
(magit-no-confirm '(set-and-push stage-all-changes unstage-all-changes))
Expand Down

0 comments on commit 919b44d

Please sign in to comment.