Commit 15a2eeb1a783

Vincent Demeester <vincent@sbr.pm>
2025-04-13 23:19:56
tools/emacs: some pre-review configuration
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 988097e
Changed files (1)
tools
emacs
tools/emacs/config/config-vcs.el
@@ -320,12 +320,12 @@ Otherwise, open the repository's main page."
   ("C-x v /" . consult-vc-modified-files))
 
 (use-package pr-review
+  :commands (pr-review)
   :custom
   (pr-review-ghub-host "api.github.com")
   (pr-review-notification-include-read nil)
   (pr-review-notification-include-unsubscribed nil)
   :config
-  (require pr-review-notification)
   (require pr-review-search)
   (general-leader
     "p" '(:ignore t :which-key "PR Review")
@@ -334,6 +334,15 @@ Otherwise, open the repository's main page."
     ;; This one doesn't really work it seems
     "ps" #'(pr-review-current-repository-search :wk "PR review search current repository")))
 
+(use-package pr-review-notification
+  :after (pr-review)
+  :commands (pr-review-notification)
+  :config
+  (general-leader
+    "pn" #'(pr-review-notification :wk "PR review notifications")
+    ;; This one doesn't really work it seems
+    "ps" #'(pr-review-current-repository-search :wk "PR review search current repository")))
+
 (defun pr-review-current-repository-search (query)
   "Run pr-review-search on the current repository."
   (interactive "sSearch query: ")