summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
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)