From: Peng Li Date: Sat, 2 Jul 2016 16:39:24 +0000 (+0800) Subject: emacs - magit mapping X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=88348af87875787087dae27533895501730a08d2;p=dotfiles.git emacs - magit mapping --- 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)