diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-20 09:12:23 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-20 09:12:23 -0500 |
| commit | 558132893e08ef926253c93ca78060ab49727050 (patch) | |
| tree | 0c125d917e0125ab2b2d483182bc26be2595be8b | |
| parent | b4e45c2fcffb485076fb8ab6801436f5c5267a1e (diff) | |
| download | dotemacs-558132893e08ef926253c93ca78060ab49727050.tar.gz dotemacs-558132893e08ef926253c93ca78060ab49727050.zip | |
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.
| -rw-r--r-- | modules/vc-config.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/vc-config.el b/modules/vc-config.el index 4a5560858..ff90ba56f 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 |
