(require 'ox-publish) ;C-x C-e to load ox-publish (setq org-publish-project-alist '( ("org-source" ;org-source files to be transformed into html files ;from org manual, 13.3.1 Example: simple publishing configuration ; and 13.3.2 Example: complex publishing configuration :base-directory "~/Documents/developer/editors/emacs/org-publish/org/" :base-extension "org" :publishing-directory "~/Documents/developer/editors/emacs/org-publish/html/" :publishing-function org-html-publish-to-html :headline-levels 4 :section-numbers nil ;nil pass, generated headings without sections numbers :with-toc nil ;nil pass, did not generate TOC :html-head "" ;from properties listed in left column of 13.1.5 Options for the exporters :with-title "f1" ;fail, this had no effect :html-head-include-default-style nil ;nil pass, did not generate 160-lines of commented style :html-postamble nil ;nil pass, did not generate postamble ) ("org-static" :base-directory "~/Documents/developer/editors/emacs/org-publish/org/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/Documents/developer/editors/emacs/org-publish/html/" :publishing-function org-publish-attachment ) ("org" :components ("org-source" "org-static")) )) ;C-x C-e and repeat after every change to org-publish-project-alist ;to publish: SPC u SPC SPC org-publish, org