Better evil bindings.
authorcondy0919 <condy0919@gmail.com>
Fri, 28 Aug 2020 03:26:06 +0000 (11:26 +0800)
committerZhiwei Chen <chenzhiwei03@kuaishou.com>
Fri, 28 Aug 2020 03:26:06 +0000 (11:26 +0800)
Applying evil collection guidelines:

- rebinding elpher-go to o, elpher-go-current to O frees the prefix g to
bring gg back
- rebind elpher-jump to J since m is used to mark
- '^' and '-' are bound to elpher-back which is modelled after dired

Visit https://github.com/emacs-evil/evil-collection for more
information.

elpher.el

index 40e21dc..fd17a70 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -1959,17 +1959,18 @@ When run interactively HOST-OR-URL is read from the minibuffer."
         (kbd "C-") 'elpher-follow-current-link
         (kbd "C-t") 'elpher-back
         (kbd "u") 'elpher-back
+        (kbd "-") 'elpher-back
         (kbd "U") 'elpher-back-to-start
         [mouse-3] 'elpher-back
-        (kbd "g") 'elpher-go
-        (kbd "o") 'elpher-go-current
+        (kbd "o") 'elpher-go
+        (kbd "O") 'elpher-go-current
         (kbd "r") 'elpher-redraw
         (kbd "R") 'elpher-reload
         (kbd "T") 'elpher-toggle-tls
         (kbd ".") 'elpher-view-raw
         (kbd "d") 'elpher-download
         (kbd "D") 'elpher-download-current
-        (kbd "m") 'elpher-jump
+        (kbd "J") 'elpher-jump
         (kbd "i") 'elpher-info-link
         (kbd "I") 'elpher-info-current
         (kbd "c") 'elpher-copy-link-url