From cfcf2c4e43afbea074787cd103c518ae90c6dd67 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 20 Oct 2025 09:12:23 -0500 Subject: chore: vc-config: auto-load forge when visiting magit-status Add forge auto-loading when visiting magit-status in a forge-enabled repository and bind "N" key to 'forge-pull' for convenience. --- modules/vc-config.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/vc-config.el b/modules/vc-config.el index 4a556085..ff90ba56 100644 --- a/modules/vc-config.el +++ b/modules/vc-config.el @@ -95,11 +95,14 @@ ;; GitHub/GitLab/etc integration for Magit (use-package forge - :after magit + :commands (forge-pull forge-list-notifications forge-create-issue forge-create-pullreq) :init ;; Set up forge database location (setq forge-database-file (expand-file-name "forge-database.sqlite" user-emacs-directory)) + ;; Auto-load forge when visiting magit-status in a forge-enabled repo + (with-eval-after-load 'magit + (define-key magit-mode-map (kbd "N") 'forge-pull)) :config (setq forge-pull-notifications nil) ;; Don't pull notifications by default -- cgit v1.2.3