Finally implement the looping editor

Also see https://github.com/magit/git-modes/pull/91