Jim Wisniewski <wis...@gmail.com> writes: > Here's a small enhancement I wrote to add customizable variables for the > `org-export-dispatch' UI options that don't already have one. I almost always > export with "Body only" switched on, and I got tired of manually toggling it > each time; while I was at it I also added variables for "Visible only" and > "Force publishing", because why not. Hopefully others will find this helpful > as > well.
Thanks! Looks like reasonable addition. See some minor comments below. > I sent in the copyright assignment form but haven't gotten the contract back > to > sign yet. FSF should reply within 5 working days. If not, follow up with them once. > * doc/org-manual.org: Document the new export variables. In addition to the manual, please announce the new customization options in etc/ORG-NEWS. > +(defcustom org-export-body-only nil > + "The initial \"Body only\" setting when exporting with > `org-export-dispatch'. > +Non-nil means only export body code, without the surrounding > +template." > + :group 'org-export-general > + :version "30.0" Here, and in other new options, :version is not needed. > + :package-version '(Org . "9.7") > + :type 'boolean) You can also add :safe keyword as these options are safe to set as buffer-locals. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>