Let open|close_pats be customizable