;; Init file to use with the orgmode plugin.

;; Load org-mode
;; Requires org-mode v8.x

;; Uncomment these lines and change the path to your org source to
;; add use it.
;; (let* ((org-lisp-dir "~/.emacs.d/src/org/lisp"))
;;   (when (file-directory-p org-lisp-dir)
;;       (add-to-list 'load-path org-lisp-dir)
;;       (require 'org)))

(require 'ox-html)

;; Custom configuration for the export.
;;; Add any custom configuration that you would like.
(setq
 org-export-with-toc nil
 org-export-with-section-numbers nil)

;; Export function used by Nikola.
(defun nikola-html-export (infile outfile)
  "Export the body only of the input file and write it to
specified location."

  (with-current-buffer (find-file infile)
    (org-html-export-as-html nil nil t t)
    (write-file outfile nil)))

;; Init file to use with the orgmode plugin.

;; Load org-mode
;; Requires org-mode v8.x

;; Uncomment these lines and change the path to your org source to
;; add use it.
;; (let* ((org-lisp-dir "~/.emacs.d/src/org/lisp"))
;;   (when (file-directory-p org-lisp-dir)
;;       (add-to-list 'load-path org-lisp-dir)
;;       (require 'org)))

(require 'ox-html)

;; Custom configuration for the export.
;;; Add any custom configuration that you would like.
(setq
 org-export-with-toc nil
 org-export-with-section-numbers nil
 org-startup-folded 'showeverything)

;; Export function used by Nikola.
(defun nikola-html-export (infile outfile)
  "Export the body only of the input file and write it to
specified location."

  (with-current-buffer (find-file infile)
    (org-html-export-as-html nil nil t t)
    (write-file outfile nil)))

Fix the output with the latest version of org-mode.
Fix the output with the latest version of org-mode.

Org-mode had a bug fix, which changed the default mode of opening a
buffer and caused issues when exporting it.  See [1] for details.
Thanks to 邓栓 for reporting it.

[1] http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=44acd000

getnikola/plugins,pluser/nikola_plugins,pluser/nikola_plugins,s2hc-johan/plugins,lotabout/plugins,getnikola/plugins,pluser/nikola_plugins,getnikola/plugins,lotabout/plugins,lotabout/plugins,s2hc-johan/plugins,s2hc-johan/plugins