Mercurial > hg > dotemacs
changeset 55:ef640c568ff3
Jump from magit to source code in other window
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 02 Apr 2012 11:57:57 -0400 |
parents | 6673ad9084d4 |
children | d3336c5544d8 |
files | dotemacs.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 "<RET>") (lambda () (interactive) + (magit-visit-item t)))))