yilkalargaw / org-auto-tangle

a simple emacs package to allow org file tangling upon save
BSD 2-Clause "Simplified" License
135 stars 15 forks source link

auto_tangle option #8

Open indigoviolet opened 3 years ago

indigoviolet commented 3 years ago

1) I noticed that org-auto-tangle-find-value could probably be simplified to (org-collect-keywords '("auto_tangle"))

2) I was expecting auto_tangle to work as a top level property, like

:PROPERTIES
:auto_tangle: t
:END:

This could be programmatically fetched with (org-entry-get nil "auto_tangle" t).

Would be nice to support both ways, combining (1) and (2).

Thanks for this package!

indigoviolet commented 1 year ago

@yilkalargaw I think (1) above is done now.

I also noticed while doing some unrelated profiling that most of org-auto-tangle's load time is taken up by ox, and you're only using ox for org-export--parse-option-keyword .. I wonder if that function can be just simplified and copied into org-auto-tangle so you don't pay that cost.