forge: compatible with MELPA stable version

Fix #576
This commit is contained in:
condy 2022-01-16 15:51:06 +08:00
parent 081e2ba130
commit dbfe2d7d22
1 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,13 @@
;;;###autoload
(defun evil-collection-forge-setup ()
"Set up `evil' bindings for `magit'."
(when forge-add-default-bindings
;; The latest release tag of forge doesn't include
;; `forge-add-default-bindings' yet, it will throw an error:
;;
;; void-variable `forge-add-default-bindings'
;;
;; for GNU Guix and MELPA stable users.
(when (bound-and-true-p forge-add-default-bindings)
(message "Setting `forge-add-default-bindings' to nil in `evil-collection-forge-setup'.
To suppress this message you can set this variable to nil in your init.el file.")
(setq forge-add-default-bindings nil))