Skip to content

Commit

Permalink
style(emacs): use personal function prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Oct 8, 2024
1 parent 919b44d commit c8875d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,12 @@
: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 ()
(defun gg/magit-auto-fetch ()
(interactive)
(magit-fetch-all ())
(when (forge-buffer-repository)
(forge-pull)))
(advice-add 'magit-status :after #'magit-auto-fetch)
(advice-add 'magit-status :after #'gg/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 c8875d1

Please sign in to comment.