Fix void functions
Move properties to beginning of the file
Move auto-save files into temporary directory
Fix viewer configuration for AUCTeX

Move functions into a single after-group, to avoid errors due to
undefined functions