Prevent forge from binding default keys

evil-collection handles this, and the default bindings produce an error message
on startup.
This commit is contained in:
Justin Burkett 2021-12-13 10:06:15 -05:00
parent 1b9d5c5d93
commit cc3877c40c
1 changed files with 6 additions and 0 deletions

View File

@ -44,9 +44,15 @@
:group 'magit
:type 'symbol)
(defvar forge-add-default-bindings)
;;;###autoload
(defun evil-collection-forge-setup ()
"Set up `evil' bindings for `magit'."
(when 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))
(let ((states (if evil-collection-forge-use-y-for-yank
`(,evil-collection-forge-state visual)
`(,evil-collection-forge-state))))