Skip to content

Commit

Permalink
magit: Refactor with dolist
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0210 committed Dec 24, 2024
1 parent 2cf8a34 commit ec7d580
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,10 @@ Call a second time to restore the original window configuration."
'magit-insert-modules
'magit-insert-unpulled-from-upstream)
(with-eval-after-load "magit-submodule"
(remove-hook 'magit-module-sections-hook 'magit-insert-modules-unpulled-from-pushremote)
(remove-hook 'magit-module-sections-hook 'magit-insert-modules-unpushed-to-upstream)
(remove-hook 'magit-module-sections-hook 'magit-insert-modules-unpushed-to-pushremote)))
(dolist (module-section '(magit-insert-modules-unpulled-from-pushremote
magit-insert-modules-unpushed-to-upstream
magit-insert-modules-unpushed-to-pushremote))
(remove-hook 'magit-module-sections-hook module-section))))

;;; Text editing

Expand Down

0 comments on commit ec7d580

Please sign in to comment.