Add Magnars' magit hook and advice.