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:16:33 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47558) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw4Fq-0001H5-F1 for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 08:16:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw4Fp-0007tg-9T for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 08:16:38 -0500 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:37464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw4Fp-0007tQ-5I for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 08:16:37 -0500 Received: by mail-qv1-xf35.google.com with SMTP id m5so1292874qvv.4 for ; Mon, 27 Jan 2020 05:16:36 -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: Neil Jerram Cc: org-mode-email Neil Jerram writes: > On Sun, 26 Jan 2020 at 18:11, John Kitchin wrote: > >> 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. >> >> Actually, if it was possible to get M-x compile to run an elisp function >> instead of a make file, it might be all I need, but it looks like it runs >> shell commands. >> > > So how about typing "M-: " instead of "M-x compile" ? Why involve > other layers when Emacs can directly evaluate elisp? It is just a reflection of how long some of the build blocks are. They frequently let-bind variables and functions to achieve some particular goal for the specific project. Since it is a one-time block, I don't usually make it a function, and the code exists in a src block. "M-:" isn't convenient for me in this scenario. > > Best wishes, > Neil -- 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