Neil Jerram <neiljer...@gmail.com> writes:
> On Sun, 26 Jan 2020 at 18:11, John Kitchin <jkitc...@andrew.cmu.edu> 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-: <elisp>" 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