]> code.delx.au - dotemacs/commitdiff
magit key binding improvements
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 30 Jul 2016 10:59:02 +0000 (20:59 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 30 Jul 2016 11:29:03 +0000 (21:29 +1000)
README.md
lisp/my-keys.el
lisp/my-shackle.el
lisp/my-vc.el

index d4a32ce1db12400ecece446cb76642878ae5d4f8..65a92e3cac6136f7192075dbc95b48da5dc3757a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -231,8 +231,10 @@ M-g M-n                                         Next occurence
 ```
 C-c g d                                         Popup diff
 C-c g p                                         Previous hunk
-C-c g f                                         Next hunk
+C-c g n                                         Next hunk
+C-c g r                                         Revert hunk
 C-c g s                                         Magit status
+C-c g f                                         Magit file specific commands
 C-c g g                                         Magit dispatch popup
 p                                               Previous section
 n                                               Next section
index e0f0ec9aa534e9f185ee1edff171b94abc81bb61..16772e252dd766aa7fb1a1f91d01bcc0e872293f 100644 (file)
@@ -22,6 +22,7 @@
 (global-set-key (kbd "C-c g d") 'git-gutter:popup-hunk)
 (global-set-key (kbd "C-c g p") 'git-gutter:previous-hunk)
 (global-set-key (kbd "C-c g n") 'git-gutter:next-hunk)
+(global-set-key (kbd "C-c g r") 'git-gutter:revert-hunk)
 
 ;; Windows/frames
 (global-set-key (kbd "<C-up>") 'windmove-up)
@@ -60,6 +61,7 @@
 (global-set-key (kbd "C-x C-j") 'direx-project:jump-to-project-root-other-window)
 (global-set-key (kbd "C-c g s") 'magit-status)
 (global-set-key (kbd "C-c g g") 'magit-dispatch-popup)
+(global-set-key (kbd "C-c g f") 'magit-file-popup)
 (global-set-key (kbd "<f8>") 'flyspell-mode)
 (global-set-key (kbd "<f9>") 'whitespace-mode)
 (global-set-key (kbd "<f10>") 'toggle-truncate-lines)
index a9ac44cc8edf2af6628de980dbd3e6ea5d04583d..5281a854a1ad1c6654fc698377b83118d4675f4a 100644 (file)
@@ -6,7 +6,7 @@
                       (direx:direx-mode :align left :size 40 :select t)
                       ("*magit-.*-popup*" :regexp t :align right :size 63 :select t)
                       (magit-status-mode :align below :size 20 :select t)
-                      (magit-diff-mode :align right)))
+                      ((magit-diff-mode magit-revision-mode) :align right)))
 
 (setq shackle-default-rule '(:align below :select t :size 15))
 
index 507083081cd317865eaa119601cb2be2f64654c2..b12ea1c3770d8a668df0c936121d26cd0014a089 100644 (file)
 
 (setq magit-completing-read-function 'ivy-completing-read)
 (setq magit-display-file-buffer-function #'pop-to-buffer)
+(setcdr magit-file-mode-map nil)
 (global-magit-file-mode)
 
 
-
 (require 'vc)
 (setq vc-follow-symlinks t)
 (setq vc-handled-backends nil)