summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-02-10 23:24:05 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-02-10 23:24:05 +0100
commit60e7992b11b6f41229af105035d1a04da716d732 (patch)
tree5ef8fb89fe24dd9af56452ae178deafb06e3454b /.emacs
parent65c8ba6d85c02df70ecfc6b395d0d06b81f6a2cc (diff)
downloaddotfiles-60e7992b11b6f41229af105035d1a04da716d732.tar.xz
Move Magit bindings to C-c g
Diffstat (limited to '.emacs')
-rw-r--r--.emacs8
1 files changed, 8 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index f55093c..7d3e54d 100644
--- a/.emacs
+++ b/.emacs
@@ -156,6 +156,13 @@
"Keymap for toggling editing features."
'(("f" auto-fill-mode)))
+(my/define-prefix-command my/magit-map
+ "Keymap for Magit commands."
+ '(("c" magit-file-dispatch)
+ ("f" magit-find-file)
+ ("g" magit-status)
+ ("x" magit-dispatch)))
+
(my/define-prefix-command my/input-map
"Keymap for input methods shortcuts."
`(("t" ,(my/make-input-toggle TeX))
@@ -189,6 +196,7 @@
(global-set-key (kbd "C-c c") 'compile)
(global-set-key (kbd "C-c d") 'my/display-map)
(global-set-key (kbd "C-c e") 'my/editing-map)
+(global-set-key (kbd "C-c g") 'my/magit-map)
(global-set-key (kbd "C-c i") 'my/input-map)
(global-set-key (kbd "C-c k") 'my/kill-map)
(global-set-key (kbd "C-c m") 'my/manual-map)