Add "gj/gk" bindings to most modes

This commit is contained in:
Pierre Neidhardt 2017-11-23 16:28:46 +01:00
parent 1bea616f36
commit 313854460f
7 changed files with 16 additions and 0 deletions

View File

@ -58,6 +58,8 @@
"}" 'calendar-forward-month
(kbd "C-k") 'calendar-backward-month
(kbd "C-j") 'calendar-forward-month
"gk" 'calendar-backward-month
"gj" 'calendar-forward-month
;; visual
"v" 'calendar-set-mark

View File

@ -48,6 +48,8 @@
;; TODO: Should the following be added?
(kbd "C-j") 'widget-forward
(kbd "C-k") 'widget-backward
"gj" 'widget-forward
"gk" 'widget-backward
"^" 'Custom-goto-parent
(kbd "C-o") 'Custom-goto-parent

View File

@ -92,6 +92,8 @@ current file instead."
(kbd "]") 'diff-file-next
(kbd "C-j") 'diff-hunk-next
(kbd "C-k") 'diff-hunk-prev
"gj" 'diff-hunk-next
"gk" 'diff-hunk-prev
"\\" 'read-only-mode) ; magit has "\"
@ -103,6 +105,8 @@ current file instead."
(kbd "]") 'diff-file-next
(kbd "C-j") 'diff-hunk-next
(kbd "C-k") 'diff-hunk-prev
"gj" 'diff-hunk-next
"gk" 'diff-hunk-prev
(kbd "<return>") 'diff-goto-source
"A" 'diff-add-change-log-entries-other-window

View File

@ -147,6 +147,8 @@
">" 'emms-seek-forward
(kbd "C-j") 'emms-next
(kbd "C-k") 'emms-previous
"gj" 'emms-next
"gk" 'emms-previous
(kbd "<return>") 'emms-playlist-mode-play-smart
;; motion

View File

@ -67,6 +67,8 @@
"]" 'outline-next-visible-heading
(kbd "C-k") 'outline-backward-same-level
(kbd "C-j") 'outline-forward-same-level
"gk" 'outline-backward-same-level
"gj" 'outline-forward-same-level
"^" 'outline-up-heading
(kbd "M-h") 'outline-move-demote ; Org-mode has "M-<left>", Evil-org has "M-h"

View File

@ -62,6 +62,8 @@
"[" 'pdf-view-previous-page-command
(kbd "C-j") 'pdf-view-next-page-command
(kbd "C-k") 'pdf-view-previous-page-command
"gj" 'pdf-view-next-page-command
"gk" 'pdf-view-previous-page-command
(kbd "<next>") 'forward-page
(kbd "<prior>") 'backward-page
(kbd "<down>") 'pdf-view-next-line-or-next-page

View File

@ -116,6 +116,8 @@ it is not appropriate in some cases like terminals."
"]" 'term-next-prompt
(kbd "C-k") 'term-previous-prompt
(kbd "C-j") 'term-next-prompt
"gk" 'term-previous-prompt
"gj" 'term-next-prompt
;; "0" 'term-bol ; "0" is meant to really go at the beginning of line.
"^" 'term-bol
"$" 'term-show-maximum-output))