 
   ;; Buffer Settings
   (setq save-place nil)
-  
+
   ;; Exporting
-  (setq 
+  (setq
    org-latex-to-pdf-process 'pmade:org-tex-to-pdf
    org-export-html-auto-postamble nil
    org-export-with-sub-superscripts nil

    (local-set-key "\C-x\C-w" 'pmade:org-write-agenda)))

;; Publishing
(setq org-publish-project-alist
  '(("knowledge-base"
     :style "<link rel=\"stylesheet\" href=\"/stylesheets/basic.css\" type=\"text/css\"/>"
     :base-directory "~/Documents/pmade/knowledge-base"
     :publishing-directory "~/Sites/knowledge-base"
     :recursive t
     :author-info t
     :email-info t
     :creator-info t
     :timestamp t
     :emphasize t
     :sub-superscript t
     :special-strings t
     :tags t
     :todo-keywords t
     :auto-preamble t
     :auto-postamble t
     :auto-sitemap t
;;     :inline-images t
;;     :link-up t
;;     :link-home t
     :sitemap-title "Sitemap"
     :sitemap-sort-folders last)
    ("journal"
     :base-directory "~/Documents/journal"
     :base-extension "org\\|jpg"
     :publishing-directory "~/Sites/journal"
     :publishing-function pmade:org-publish-html-or-image
     :style "<link rel=\"stylesheet\" href=\"/stylesheets/basic.css\" type=\"text/css\"/>"
     :exclude "setup\\.org"
     :recursive t
     :author-info t
     :email-info t
     :creator-info t
     :timestamp t
     :emphasize t
     :sub-superscript t
     :special-strings t
     :tags t
     :todo-keywords t
     :auto-preamble t
     :auto-postamble t
     :auto-sitemap t
     :sitemap-title "Sitemap"
     :sitemap-sort-folders last)))

(defun pmade:org-publish-html-or-image (plist filename pub-dir)
  (if (string-match "\\.org$" filename)
      (org-publish-org-to-html plist filename pub-dir)

(autoload 'org-invoice-report "org-invoice" nil t)
(autoload 'org-dblock-write:invoice "org-invoice" nil t)
(autoload 'org-eva-submit "org-eva" nil t)

(eval-after-load "org-eva"
  '(let ((eva-conf "~/develop/pmade/privaterc/emacs/secrets.el"))
