my config. Largely taken from norang