Add bindings for next-error and previous-error