From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: map function definitions to org src blocks? Date: Thu, 8 Nov 2018 22:22:36 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000395433057a32db60" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKxN7-0006Eo-Px for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 22:22:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKxN4-0003X2-6L for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 22:22:12 -0500 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:38759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKxN3-0003WX-V6 for emacs-orgmode@gnu.org; Thu, 08 Nov 2018 22:22:10 -0500 Received: by mail-io1-xd2d.google.com with SMTP id q18-v6so331809iod.5 for ; Thu, 08 Nov 2018 19:22:09 -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.org@gnu.org Sender: "Emacs-orgmode" To: John Kitchin Cc: Org Mode --000000000000395433057a32db60 Content-Type: text/plain; charset="UTF-8" THanks John. I guess I should always just start my search for "something cool I saw" in scimax... Yes, thisis pretty great. I havebeen using ~helpful~ which hasa nice interface for some extra functions, but these functions do most of what I felt was missing. On Thu, Nov 8, 2018 at 6:02 PM John Kitchin wrote: > I wrote something kind of like this at > > https://github.com/jkitchin/scimax/blob/master/scimax-literate-programming.el > > > It might solve a different problem related to navigating code embedded in > org files. > > I don't think it works on describe-function. That would be an interesting > addition perhaps. I guess though that describe-function would go to the > elisp code. I never figured out how to get links in the tangled code to > jump back to the org file though. > > On Thu, Nov 8, 2018 at 5:39 PM Matt Price wrote: > >> I feel like I saw someone do this but can't find it in my notes. When >> tangling code to elisp, is it possible to point ~describe-function~ to the >> original org-mode source (or at least the src block) as the "source code" >> for the function, rather than the resultant .e file produced by >> org-babel-tangle? Seems like this would make a whole lot of things >> significantly easier when writing emacs inits, for instnace. >> > -- > John > > ----------------------------------- > 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 > > --000000000000395433057a32db60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
THanks John. I guess I should always just start my se= arch for "something cool I saw" in scimax...

=
Yes, thisis pretty great. I havebeen using ~helpful~ which hasa nice i= nterface for some extra functions, but these functions do most of what I fe= lt was missing.=C2=A0

On Thu, Nov 8, 2018 at 6:02 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
=
I wrote something kin= d of like this at=C2=A0
https://github= .com/jkitchin/scimax/blob/master/scimax-literate-programming.el=C2=A0

It might solve a differen= t problem related to navigating code embedded in org files.

I don't think it w= orks on describe-function. That would be an interesting addition perhaps. I= guess though that describe-function would go to the elisp code. I never fi= gured out how to get links in the tangled code to jump back to the org file= though.=C2=A0

On Thu,= Nov 8, 2018 at 5:39 PM Matt Price <moptop99@gmail.com> wrote:
I feel like I saw someone do this but c= an't find it in my notes. When tangling code to elisp, is it possible t= o point ~describe-function~ to the original org-mode source (or at least th= e src block) as the "source code" for the function, rather than t= he resultant .e file produced by org-babel-tangle? Seems like this would ma= ke a whole lot of things significantly easier when writing emacs inits, for= instnace. =C2=A0
--
John

-----------------------------------
Prof= essor John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical En= gineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-= 7803
--000000000000395433057a32db60--