Customize whitespace based on mode.