diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-02-10 23:24:05 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-02-10 23:24:05 +0100 |
| commit | 60e7992b11b6f41229af105035d1a04da716d732 (patch) | |
| tree | 5ef8fb89fe24dd9af56452ae178deafb06e3454b | |
| parent | 65c8ba6d85c02df70ecfc6b395d0d06b81f6a2cc (diff) | |
| download | dotfiles-60e7992b11b6f41229af105035d1a04da716d732.tar.xz | |
Move Magit bindings to C-c g
| -rw-r--r-- | .emacs | 8 | ||||
| -rw-r--r-- | .emacs-custom.el | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -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) diff --git a/.emacs-custom.el b/.emacs-custom.el index 4a16bef..bc23047 100644 --- a/.emacs-custom.el +++ b/.emacs-custom.el @@ -53,6 +53,7 @@ '(isearch-lazy-count t) '(line-number-display-limit-width 2000) '(lua-indent-level 2) + '(magit-define-global-key-bindings nil) '(magit-diff-refine-hunk t) '(magit-ediff-dwim-show-on-hunks t) '(magit-log-arguments '("--graph" "--color" "--decorate" "-n256")) |
