From: Tim Vaughan Date: Mon, 10 Jun 2019 18:51:41 +0000 (+0200) Subject: De-linted motion state initialization of elpher-mode. X-Git-Tag: v1.2.0~19 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=75be7c0458742386e4120f91e1f56669d00f955e;p=elpher.git De-linted motion state initialization of elpher-mode. --- 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 ;;