From 88348af87875787087dae27533895501730a08d2 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 3 Jul 2016 00:39:24 +0800 Subject: [PATCH] emacs - magit mapping --- emacs.d/config.org | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 9a2ec74..af91237 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -824,11 +824,8 @@ extend org-mode's easy templates, refer to [[http://coldnew.github.io/coldnew-em #+END_SRC * Magit - [[https://github.com/magit/magit][Magit]] is a very cool git interface on Emacs. - and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github.com/abo-abo/oremacs/blob/c5cafdcebc88afe9e73cc8bd40c49b70675509c7/modes/ora-nextmagit.el][here]] - #+BEGIN_SRC emacs-lisp :tangle yes :results silent (use-package magit :ensure t @@ -840,6 +837,7 @@ and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github magit-staged-section-map)) (define-key map "j" 'magit-section-forward) (define-key map "k" 'magit-section-backward) + (define-key map "D" 'magit-discard-file) (define-key map "n" nil) (define-key map "p" nil) (define-key map "v" 'recenter-top-bottom) -- 2.11.0