From: Tim Vaughan Date: Mon, 3 Jun 2019 15:26:16 +0000 (+0200) Subject: Use motion state for elpher buffer (Evil). X-Git-Tag: v1.2.0~31 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=91c45933106e7cbece41cabfb7596fcec75a1899;p=elpher.git Use motion state for elpher buffer (Evil). --- diff --git a/elpher.el b/elpher.el index 6e7a365..6b69dab 100644 --- a/elpher.el +++ b/elpher.el @@ -728,7 +728,8 @@ The result is stored as a string in the variable ‘elpher-selector-string’." (define-key map (kbd "d") 'elpher-download) (define-key map (kbd "m") 'elpher-menu) (when (fboundp 'evil-define-key) - (evil-define-key 'normal map + (add-to-list 'evil-motion-state-modes 'elpher-mode) + (evil-define-key 'motion map (kbd "TAB") 'elpher-next-link (kbd "C-]") 'elpher-follow-current-link (kbd "C-t") 'elpher-back