organic/org_mode_samples/common.el

12 lines
255 B
EmacsLisp
Raw Normal View History

(defun org-dump-ast (outpath)
(let
2023-03-19 18:21:02 +00:00
(
;; (parsed-tree (format "%s" (org-element-parse-buffer)))
(parsed-tree (pp-to-string (org-element-parse-buffer)))
)
(with-temp-file outpath
(insert parsed-tree)
)
)
)