An interactive, iterative ‘git blame’ mode for Emacs
Friday 23 October 2009 @ 4:10 pm

I’m an active user of Magit for all my Git needs within Emacs. One thing I’ve always found missing was nice support for ‘git blame’ — and by ‘nice’ I mean some more comfort than the simple display of its output.

When I’m hunting bugs one thing I often need is not only the information who modified a certain line but also who modified the line before that. Also what I’d like is having both the source code (including syntax highlighting, of course) and the blame information shown side-by-side with quick access to the log message for particular commits.

That’s what ‘mo-git-blame’ tries to solve. It is a standalone mode that can be used with any of the various Git version control modes. Here are a couple of its features:

Here’s what it looks like:

Screenshot of Emacs with mo-git-blame-mode

Screenshot of Emacs with mo-git-blame-mode

You can download the sources from my Git repository or directly with

  1. git clone git://

Installation and usage instructions are included both in the file itself and its README, but here’s the short version:

  1. (addtolist 'loadpath "~/.emacs.d/mo-git-blame")
  2. (autoload 'mogitblamefile "mo-git-blame" nil t)
  3. (autoload 'mogitblamecurrent "mo-git-blame" nil t)
Tags: , ,

Comments (16) - Posted in Programming by  

 16 responses to “An interactive, iterative ‘git blame’ mode for Emacs”