From 4c2197b1ce90b93189a07712e71387337784bc62 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 7 May 2020 11:14:26 -0400 Subject: [PATCH] Add evil keybindings for forge --- emacs/init.org | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index f32d19d..547c9ac 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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