Add scripts for dumping the org-mode ast to investigate how emacs parses various inputs.
This commit is contained in:
8
org_mode_samples/common.el
Normal file
8
org_mode_samples/common.el
Normal file
@@ -0,0 +1,8 @@
|
||||
(defun org-dump-ast (outpath)
|
||||
(let
|
||||
((parsed-tree (format "%s" (org-element-parse-buffer))))
|
||||
(with-temp-file outpath
|
||||
(insert parsed-tree)
|
||||
)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user