Whoops, some minor-modes aren't loaded yet.
Move some basic configuration to the top, so they're run even in the case of error lower in the file.