Command by mode or filepattern; specify custom functions.