dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit 60e7992b11b6f41229af105035d1a04da716d732
parent 65c8ba6d85c02df70ecfc6b395d0d06b81f6a2cc
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Wed, 10 Feb 2021 23:24:05 +0100

Move Magit bindings to C-c g

Diffstat:
M.emacs | 8++++++++
M.emacs-custom.el | 1+
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git 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) diff --git 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"))