Put magit hook stuff inside an 'after' block