Variable: magit-mode-map

magit-mode-map is a variable defined in magit-mode.el.

Value

Large value
                         evil-next-visual-line
                         evil-previous-visual-line
                         forge-browse
                         forge-copy-url-at-point-as-kill
!                        magit-run
$                        magit-process-buffer
%                        magit-worktree
'                        forge-dispatch
+                        magit-diff-more-context
-                        magit-diff-less-context
-                        negative-argument
0                        digit-argument
0                        magit-diff-default-context
1                        magit-section-show-level-1
2                        magit-section-show-level-2
3                        magit-section-show-level-3
4                        magit-section-show-level-4
:                        magit-git-command
<backtab>                magit-section-cycle-global
<left-fringe> <mouse-1>  magit-mouse-toggle-section
<left-fringe> <mouse-2>  magit-mouse-toggle-section
<mouse-1>                magit-mouse-set-point
>                        magit-sparse-checkout
?                        magit-dispatch
A                        magit-cherry-pick
B                        magit-bisect
C                        magit-clone
C-<return>               magit-visit-thing
C-<tab>                  magit-section-cycle
C-M-i                    magit-dired-jump
C-c C-c                  magit-dispatch
C-c C-e                  magit-edit-thing
C-c C-o                  magit-browse-thing
C-c C-r                  magit-next-reference
C-c C-w                  magit-copy-thing
C-c TAB                  magit-section-cycle
C-n                      magit-next-line
C-p                      magit-previous-line
C-w                      magit-copy-section-value
D                        magit-diff-refresh
DEL                      magit-diff-show-or-scroll-down
E                        magit-ediff
F                        magit-pull
G                        magit-refresh-all
H                        magit-describe-section
I                        magit-init
J                        magit-display-repository-buffer
K                        magit-file-untrack
L                        magit-log-refresh
M                        magit-remote
M-1                      magit-section-show-level-1-all
M-2                      magit-section-show-level-2-all
M-3                      magit-section-show-level-3-all
M-4                      magit-section-show-level-4-all
M-<tab>                  magit-section-cycle
M-<tab>                  magit-section-cycle-diffs
M-m                      magit-back-to-indentation
M-n                      magit-section-forward-sibling
M-p                      magit-section-backward-sibling
M-w                      magit-copy-buffer-revision
N                        forge-dispatch
O                        magit-subtree
P                        magit-push
Q                        magit-git-command
R                        magit-file-rename
RET                      magit-visit-thing
S                        magit-stage-modified
S-SPC                    magit-diff-show-or-scroll-down
SPC                      magit-diff-show-or-scroll-up
SPC..~                   undefined
T                        magit-notes
TAB                      magit-section-toggle
U                        magit-unstage-all
V                        magit-revert
W                        magit-patch
X                        magit-reset
Y                        magit-cherry
Z                        magit-worktree
^                        magit-section-up
a                        magit-cherry-apply
b                        magit-branch
c                        magit-commit
d                        magit-diff
e                        magit-ediff-dwim
f                        magit-fetch
g                        magit-refresh
h                        magit-dispatch
i                        magit-gitignore
j                        magit-status-quick
k                        magit-delete-thing
l                        magit-log
m                        magit-merge
n                        magit-section-forward
o                        magit-submodule
p                        magit-section-backward
q                        magit-mode-bury-buffer
q..\x3FFFFF                     digit-argument
r                        magit-rebase
s                        magit-stage-files
t                        magit-tag
u                        magit-unstage-files
v                        magit-revert-no-commit
w                        magit-am
x                        magit-reset-quickly
y                        magit-show-refs
z                        magit-stash

Documentation

Parent keymap for all keymaps of modes derived from magit-mode.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
;;; Key Bindings

(defvar-keymap magit-mode-map
  :doc "Parent keymap for all keymaps of modes derived from `magit-mode'."
  :parent magit-section-mode-map
  ;; Don't function-quote but make sure all commands are autoloaded.
  "C-<return>"  'magit-visit-thing
  "RET"         'magit-visit-thing
  "M-TAB"       'magit-dired-jump
  "M-<tab>"     'magit-section-cycle-diffs
  "SPC"         'magit-diff-show-or-scroll-up
  "S-SPC"       'magit-diff-show-or-scroll-down
  "DEL"         'magit-diff-show-or-scroll-down
  "+"           'magit-diff-more-context
  "-"           'magit-diff-less-context
  "0"           'magit-diff-default-context
  "a" 'magit-cherry-apply
  "A" 'magit-cherry-pick
  "b" 'magit-branch
  "B" 'magit-bisect
  "c" 'magit-commit
  "C" 'magit-clone
  "d" 'magit-diff
  "D" 'magit-diff-refresh
  "e" 'magit-ediff-dwim
  "E" 'magit-ediff
  "f" 'magit-fetch
  "F" 'magit-pull
  "g" 'magit-refresh
  "G" 'magit-refresh-all
  "h" 'magit-dispatch
  "?" 'magit-dispatch
  "H" 'magit-describe-section
  "i" 'magit-gitignore
  "I" 'magit-init
  "j" 'magit-status-quick
  "J" 'magit-display-repository-buffer
  "k" 'magit-delete-thing
  "K" 'magit-file-untrack
  "l" 'magit-log
  "L" 'magit-log-refresh
  "m" 'magit-merge
  "M" 'magit-remote
  ;; "n" magit-section-forward in magit-section-mode-map
  ;; "N" forge-dispatch, added by forge package
  "o" 'magit-submodule
  "O" 'magit-subtree
  ;; "p" magit-section-backward in magit-section-mode-map
  "P" 'magit-push
  "q" 'magit-mode-bury-buffer
  "Q" 'magit-git-command
  ":" 'magit-git-command
  "r" 'magit-rebase
  "R" 'magit-file-rename
  "s" 'magit-stage-files
  "S" 'magit-stage-modified
  "t" 'magit-tag
  "T" 'magit-notes
  "u" 'magit-unstage-files
  "U" 'magit-unstage-all
  "v" 'magit-revert-no-commit
  "V" 'magit-revert
  "w" 'magit-am
  "W" 'magit-patch
  "x" 'magit-reset-quickly
  "X" 'magit-reset
  "y" 'magit-show-refs
  "Y" 'magit-cherry
  "z" 'magit-stash
  "Z" 'magit-worktree
  "%" 'magit-worktree
  "$" 'magit-process-buffer
  "!" 'magit-run
  ">" 'magit-sparse-checkout
  "C-c C-c" 'magit-dispatch
  "C-c C-r" 'magit-next-reference
  "C-c C-e" 'magit-edit-thing
  "C-c C-o" 'magit-browse-thing
  "C-c C-w" 'magit-copy-thing
  "C-w"     'magit-copy-section-value
  "M-w"     'magit-copy-buffer-revision
  "<remap> <mouse-set-point>"     'magit-mouse-set-point
  "<remap> <back-to-indentation>" 'magit-back-to-indentation
  "<remap> <previous-line>"       'magit-previous-line
  "<remap> <next-line>"           'magit-next-line
  "<remap> <evil-previous-line>"  'evil-previous-visual-line
  "<remap> <evil-next-line>"      'evil-next-visual-line)