`local` function for modifying reader environments