From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: creating new #+KEYWORD: variables Date: Thu, 8 Nov 2018 22:32:52 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e24acf057a32ff09" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKxXI-00035n-Pt for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 22:32:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKxXC-0007Fk-4R for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 22:32:40 -0500 Received: from mail-it1-x12c.google.com ([2607:f8b0:4864:20::12c]:38786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKxX0-0006oo-AC for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 22:32:29 -0500 Received: by mail-it1-x12c.google.com with SMTP id k141-v6so1340705itk.3 for ; Thu, 08 Nov 2018 19:32:24 -0800 (PST) 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: Org Mode --000000000000e24acf057a32ff09 Content-Type: text/plain; charset="UTF-8" I am writing this interface to my university's learning management system: https://github.com/titaniumbones/Org-Marking-Mode/tree/use-structured-course-def. I am only using hte exporting system tangentially and I have not defined a new exporter. However, I would really like to be able to set some variable values in the header section of hte document, e.g.: #+ORG_LMS_COURSE: becomingmodern or #+PROPERTY: org-lms-course hackinghistory I thought the latter might work but (org-entry-get-with-inheritance "org-lms-course) and (org-entry-get-with-inheritance "ORG_LMS_COURSE") both return nil. The former is in any case somewhat cleaner-looking but I am not finding in the manual an instructions on how to add my own keywords. Is it possible to do this? I can of course always set a buffer-local variable in a src block, e.g.: #+begin_src emacs-lisp (setq org-lms-course 'becomingmodern) #+end_src. but I would like to be able to avoid that where possible. Thanks for the help as usual! --000000000000e24acf057a32ff09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am writing this interface to my univers= ity's learning management system: https://github.com/= titaniumbones/Org-Marking-Mode/tree/use-structured-course-def. I am onl= y using hte exporting system tangentially and I have not defined a new expo= rter. However, I would really like to be able to set some variable values i= n the header section of hte document, e.g.:

#+ORG_LMS_COURSE: becomingmodern

or

#+PROPERTY: org-lms-course hackinghistory
<= br>
I thought the latter might work but (org-entry-get-with-inher= itance "org-lms-course) and (org-entry-get-with-inheritance "ORG_= LMS_COURSE") both return nil.=C2=A0 The former is in any case somewhat= cleaner-looking but I am not finding in the manual an instructions on how = to add my own keywords.=C2=A0 Is it possible to do this? I can of course al= ways set a buffer-local variable in a src block, e.g.:
#+begin_sr= c emacs-lisp
(setq org-lms-course 'becomingmodern)
= #+end_src.

but I would like to be able to avoid t= hat where possible.

Thanks for the help as us= ual!


--000000000000e24acf057a32ff09--