# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1333382277 14400 # Node ID ef640c568ff3b342f750e42cd8aa36517750bb61 # Parent 6673ad9084d4afccd99a4de18108b395b5959ca9 Jump from magit to source code in other window diff --git a/dotemacs.el b/dotemacs.el --- a/dotemacs.el +++ b/dotemacs.el @@ -274,3 +274,8 @@ (setq buffer-display-table (make-display-table)) (aset buffer-display-table ?\^M [])) +;; I always run magit side-by-side to the code I'm reading +(add-hook 'magit-mode-hook + (lambda () + (local-set-key (kbd "") (lambda () (interactive) + (magit-visit-item t)))))