X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=blobdiff_plain;f=elpher.el;h=4bde41a1c7281d066205d6eb503359f2e8b85fea;hb=75be7c0458742386e4120f91e1f56669d00f955e;hp=c0e67b1c1dbebfa4c8c027c9ce0b1b9833697e1a;hpb=db31caf9497df363987edba1d18f9c8132a28012;p=elpher.git diff --git a/elpher.el b/elpher.el index c0e67b1..4bde41a 100644 --- a/elpher.el +++ b/elpher.el @@ -890,7 +890,6 @@ Beware that this completely replaces the existing contents of the file." (define-key map (kbd "d") 'elpher-download) (define-key map (kbd "m") 'elpher-menu) (when (fboundp 'evil-define-key) - (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 @@ -912,6 +911,8 @@ Beware that this completely replaces the existing contents of the file." (define-derived-mode elpher-mode special-mode "elpher" "Major mode for elpher, an elisp gopher client.") +(when (fboundp 'evil-set-initial-state) + (evil-set-initial-state 'elpher-mode 'motion)) ;;; Main start procedure ;;