From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Nobis Subject: Re: emacs build command for org-files Date: Mon, 27 Jan 2020 09:16:53 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46993) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivzZu-0006QM-Pr for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 03:17:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivzZt-0005Kv-4D for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 03:17:02 -0500 Received: from basilikum.nobis-admin.de ([89.238.71.130]:57320) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ivzZs-00057f-MM for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 03:17:01 -0500 Received: from bohne (p200300CD670FAF00400F529B693F9EB3.dip0.t-ipconnect.de [IPv6:2003:cd:670f:af00:400f:529b:693f:9eb3]) by basilikum.nobis-admin.de (Postfix) with ESMTPSA id 538056D82D05 for ; Mon, 27 Jan 2020 09:16:54 +0100 (CET) In-Reply-To: (John Kitchin's message of "Sun, 26 Jan 2020 13:10:22 -0500") 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 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 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.). -- Until the next mail..., Stefan.