Switch to lualatex, autosave
Use defun for hook
Reset comint faces