From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: getting access to a self-invented option? Date: Wed, 7 Aug 2019 17:21:37 +0000 Message-ID: <8A0120A3-AB6B-4226-9CFA-FB89C7F3DF78@ucsd.edu> References: <9EDE113B-CF70-4246-BF76-BAD8248E6EC3@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53805) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvPdW-0006a6-QK for emacs-orgmode@gnu.org; Wed, 07 Aug 2019 13:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvPdV-0001Td-U0 for emacs-orgmode@gnu.org; Wed, 07 Aug 2019 13:22:06 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:38504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hvPdV-0001Rw-Cx for emacs-orgmode@gnu.org; Wed, 07 Aug 2019 13:22:05 -0400 In-Reply-To: <9EDE113B-CF70-4246-BF76-BAD8248E6EC3@ucsd.edu> Content-Language: en-US Content-ID: <4B4AB0F5B3510D42AA331E88FF14F04A@AD.UCSD.EDU> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Berry, Charles" Cc: Org Mode Correction below. [snip] >=20 >>=20 >> I guess another option is to just set a buffer-local variable in the fil= e, or use #+FILETAGS: and hack htings that way. I'm not sure what the most = sustainable & org-like method relaly is...=20 >>=20 >=20 > The obvious choice for a local file setting is an OPTION. Since your 'huv= eal backend already has an :options-alist, you can just add another option = for `:mwp-export-type' there. If you want access to the value before `org-e= xport-as' runs, try something like=20 >=20 > (plist-get (org-export-get-environment) :mwp-export-type)=20 Rather (plist-get (org-export-get-environment 'huveal) :mwp-export-type) is needed to access your custom options before export is underway.=20 Chuck=