Mode to quit a buffer conveniently