From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: adding a new org-element? Date: Tue, 22 Mar 2016 10:19:42 +0100 Message-ID: <87poum27kh.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiITk-0004iL-JB for emacs-orgmode@gnu.org; Tue, 22 Mar 2016 05:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiITh-0006AZ-Dm for emacs-orgmode@gnu.org; Tue, 22 Mar 2016 05:19:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:51045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiITh-0006AB-7Y for emacs-orgmode@gnu.org; Tue, 22 Mar 2016 05:19:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aiITc-0006GR-JA for emacs-orgmode@gnu.org; Tue, 22 Mar 2016 10:19:48 +0100 Received: from 62.80.108.8 ([62.80.108.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Mar 2016 10:19:48 +0100 Received: from rasmus by 62.80.108.8 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Mar 2016 10:19:48 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Kitchin writes: > Suppose one wanted to add a new org-element/syntax to org-mode. Where > would one start? > > I am interested in something like the following syntax: > > $(arbitrary stuff inside the sexp)$ > > with a mechanism to call an export function to transcode it. > > Any pointers to getting started? I guess you'd to amend org-element.el, which I guess is not really built to add new element types... The citation branch is an example of modifications to add a single new element to the parser. Hopefully Nicolas can give a deeper explanation. Rasmus -- Dung makes an excellent fertilizer