Add evil keybindings for forge

This commit is contained in:
Jeremy Dormitzer 2020-05-07 11:14:26 -04:00
parent 0922e1f3bf
commit 4c2197b1ce

View File

@ -327,7 +327,12 @@ A framework for creating Magit-style popups:
Magit is objectively the best Git interface.
#+BEGIN_SRC emacs-lisp
(use-package magit
:commands (magit-status magit-blame magit-find-file magit-name-local-branch))
:commands (magit-status
magit-blame
magit-find-file
magit-name-local-branch)
:config
(require 'evil-magit))
#+END_SRC
#+BEGIN_SRC emacs-lisp
@ -348,11 +353,15 @@ Use ido-mode for completion within Magit:
(use-package forge
:after (magit)
:config
(add-to-list 'forge-alist '("git.jeremydormitzer.com" "git.jeremydormitzer.com/api/v1"
"git.jeremydormitzer.com" forge-gitea-repository))
(add-to-list 'evil-emacs-state-modes 'forge-topic-list-mode)
(add-to-list 'forge-alist '("git.jeremydormitzer.com"
"git.jeremydormitzer.com/api/v1"
"git.jeremydormitzer.com"
forge-gitea-repository))
:general
(forge-topic-list-mode-map "SPC" leader-map))
((normal motion) magit-mode-map "yu" #'forge-copy-url-at-point-as-kill)
((normal motion visual) forge-topic-list-mode-map
"y" #'forge-copy-url-at-point-as-kill
"q" #'quit-window))
#+END_SRC
** evil-magit