From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: emacs build command for org-files Date: Mon, 27 Jan 2020 08:33:01 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51067) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw4Vm-0000io-2X for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 08:33:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw4Vk-0005Q4-Qi for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 08:33:05 -0500 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:41097) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw4Vk-0005Pf-Mh for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 08:33:04 -0500 Received: by mail-qk1-x72f.google.com with SMTP id s187so9548528qke.8 for ; Mon, 27 Jan 2020 05:33:04 -0800 (PST) Received: from Johns-MacBook-Air.local (c-67-171-67-30.hsd1.pa.comcast.net. [67.171.67.30]) by smtp.gmail.com with ESMTPSA id d25sm9775522qkk.77.2020.01.27.05.33.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2020 05:33:02 -0800 (PST) In-reply-to: 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Stefan Nobis writes: > John Kitchin writes: > >> Hi everyone, > >> This is only semi-on-topic. I am looking for something like M-x compile for >> my org-files, but I don't want it to necessarily use Makefiles. I am >> looking for suggestions of existing solutions to this, or thoughts on how >> to implement this. > > This may not be the solution you are looking for, but maybe a good > source of ideas: > > https://github.com/doublep/eldev Thanks for this tip. This is the kind of thing I was hoping this thread would unearth. This seems kind of like rake from ruby, where the build scripts are written in the language you are building from. That is more aligned with what I am trying to do here. > > Another idea: Just use a (configurable) function name or source block > name to look for in a document. Then some magic function (say > org-compile-document) can look for a custom function/block inside the > document (e.g. look for a marked source block) and execute it, if > found. If no custom function/block is found, some default action will > be executed (e.g. ask user what to do, run pre-configured default > export action etc.). This is what I do now. I thought (hoped?) maybe someone else had worked out something similar, and had a better idea. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu