Add pub function setting
Fix error and require publish file

So I can use C-h v to look up variables related to publishing.