From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EP+MNh6iw2I8hgAAbAwnHQ (envelope-from ) for ; Tue, 05 Jul 2022 04:29:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kIdXNh6iw2IQEAEAauVa8A (envelope-from ) for ; Tue, 05 Jul 2022 04:29:50 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 86B593C997 for ; Tue, 5 Jul 2022 04:29:49 +0200 (CEST) Received: from localhost ([::1]:40598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8YJw-0007Sg-A0 for larch@yhetil.org; Mon, 04 Jul 2022 22:29:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8YJL-0007SC-J0 for emacs-orgmode@gnu.org; Mon, 04 Jul 2022 22:29:12 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8YJI-0004OX-GX for emacs-orgmode@gnu.org; Mon, 04 Jul 2022 22:29:11 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8DA565C0108 for ; Mon, 4 Jul 2022 22:29:06 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Mon, 04 Jul 2022 22:29:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1656988146; x=1657074546; bh=ihxNNwj99L ZVdGdx1HTg8UsD58a4SrHNMQo5+Il3beI=; b=oc//QPmrT/Idkzr6+fvUEJmOYY ExhK3Km7kfXEbMUsGhzJVmcE7r2tEZFLIDL+TLN7SsTO7gxkMCEo2pY61hRW3wqZ fGoBpR2ILOU3hPRvvJ46dPvfEoEfr190AenJm56J1S89A/stpo+rKSOCKbYcuRZK rFJt2hLs5kOTcauUuVXDFUEE4CY97LqkloCPWZXHjAO0NDAeAYEAD4O75cI9AjCt iBcyKHgsJVsx9AskSW3gYdDes2KBUqe0foxk9JSR+K6BCFZMADAByZr0UR/ued0v 80+AonfEFXMlFHwiDmM3s1ixqzYMOLV8/p31YJVBcbbtAWVtP2dXBufdyEKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656988146; x=1657074546; bh=ihxNNwj99LZVdGdx1HTg8UsD58a4 SrHNMQo5+Il3beI=; b=OaR4R4LVshcc50LJYBjrRPzKZ43L3/0nLouq+3+51hfn MILfQIXg6iU0sceOaUW08hFQCBBDQzNVS7ebCNTkr8zkkkW3UEyY1M6P/Li8yjIK xhDw+zlRmafruMX9nvOgvl7HhblbNB9O/sw14atE8rwOfuGZheXSOp5lh6UEJGJn 4fWM2qZnc2mOWg9Cl83la+CsEShANr/q+8SmLboSv341FCnZDhX2lp42WTtMBzUT 1K2g4hdLtmBlkdpArmrdVMxfASRro7QuFErkX2AdiZgj7vl0nNy0HVlBvsUtFmMP Uy2xSvpKXlbNf6WhLMg8b5nu410TmTR6aSrMMCknNA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeitddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpefofg ggkfgjfhffhffvufgtsegrtderreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghn higrfdcuoehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrh hnpeevgeffvedtgfefiefhfeegjefhkeffgfeuvddvvdffueekfefhfeefleffffffieen ucffohhmrghinhepghhithhhuhgsrdgtohhmpdgtohhnfhhighhurhgrthhiohhnrdhorh hgpdhmuhhsihhmrghtihgtrdighiiipdgtohhnfhhighdrohhrghdphihouhhtuhgsvgdr tghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hssggrnhihrgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ib97947f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 57F56170034B; Mon, 4 Jul 2022 22:29:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Mon, 04 Jul 2022 22:28:54 -0400 From: "Samuel Banya" To: "Charles Berry" Subject: Re: Moving to a literate file for .emacs Content-Type: multipart/alternative; boundary=3ecae71830c84dffb8ea8037f0fd3f41 Received-SPF: pass client-ip=66.111.4.29; envelope-from=sbanya@fastmail.com; helo=out5-smtp.messagingengine.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656988190; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ihxNNwj99LZVdGdx1HTg8UsD58a4SrHNMQo5+Il3beI=; b=U1x+ygwie5c8lv2G9Dpl91k4a5XufNPYpUlTVkj2EInLNUq4y4v7aZfZbJ6d35j2msn14Z pqRZtAw5eHWkQTYFmM8c3OpnCEpP7jdelcFbawQeKh+4bn9XY4JBcLN3eVu8+b912kbq/b 9/UbqEMcFRrapOolC83EQlMaYUBMCs/x7P0wR5yUyib/Uc8yDjeR0Zoa7OsmacG0OZYmMY Z6X1YgHGL63zgbjUqLOBDNFmd4pz3y8Ovs89FyhTHSiqFeK9bAiHb7IVG43rdoH96PPU8C kcfnrDT03cLrwjmg+OHAxnZ67GKyMYwPsYzUrqa2/WbXR1e8y8o0PNlFLGw92A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656988190; a=rsa-sha256; cv=none; b=aqoBcp6L/XiE0hj2R+bk8s7qlCmVMwLvaXNAjM7U9ndiLYSs1ac2BQNp1uz76dzsUR7Gf4 2d30xy/2O/w1SSMadTyQIGpJ8WMFNJn+um7sEk2Bnv1omjCHCenmBjViNT6SWGA3cqFHjt ab+grDG5QKWsw/CXqjsninLwfUPpdnhoHbHDweOgUqVIPdDfSixEGYyjHqzfzdUi60cEru UB/P3j0NeZPYahb2BQkWj1VwZBaloO0Mh99TsNmJkvJJow4yC1pG4dAzq8KQDYnIVHlL0I UJKwpgs87zDePM5ZOAqQKvdlswf0AxXN97Y5D8PBpGPRzQ8j2TouisA/M+rUTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.com header.s=fm2 header.b="oc//QPmr"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=OaR4R4LV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.com header.s=fm2 header.b="oc//QPmr"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=OaR4R4LV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 86B593C997 X-Spam-Score: 7.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: Z12zCMtA8p2m --3ecae71830c84dffb8ea8037f0fd3f41 Content-Type: text/plain I have a literate Emacs config here that you can look at: https://github.com/SamuelBanya/SamsEmacs/blob/main/configuration.org https://github.com/SamuelBanya/SamsEmacs/blob/main/init.el Take a look at the Emacs config links to other people's 'literate' Emacs configs, and you might get some ideas to steal from as well, look under 'Emacs Config Links (Custom User Configs, Emacs Distributions, etc.)': https://apps.musimatic.xyz/webring.html Also, Uncle Dave's Emacs YouTube tutorial is the best one for making an Emacs config based upon a 'config.org' file, would recommend this 100x: https://www.youtube.com/playlist?list=PLX2044Ew-UVVv31a0-Qn3dA6Sd_-NyA1n Hope this helps! Sincerely, Sam On Mon, Jul 4, 2022, at 9:44 AM, Stephen Eglen wrote: > I see many users are switching to using a 'literate programming' > approach to tangling their .emacs file from an org file. > > Has anyone solved the following problem though? If I have a file called > config.org containing: > > * test > > #+begin_src emacs-lisp > (defun quick-test () > "interactive" > (* 3 9) > ) > #+end_src > > > and then in my .emacs file I do: > > (org-babel-load-file "~/config.org") > > quick-test is indeed defined, but when I do C-c f RET quick-test RET it > takes me to config.el (a tangled file, suitable for computers, not > humans), rather than config.org. Is it possible instead to get the > editor to jump to the definition in config.org? > > Stephen > > > --3ecae71830c84dffb8ea8037f0fd3f41 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I have a litera= te Emacs config here that you can look at:
https:= //github.com/SamuelBanya/SamsEmacs/blob/main/configuration.org

Take a look at the Emacs config links to oth= er people's 'literate' Emacs configs, and you might get some ideas to st= eal from as well, look under 'Emacs Config Links (Custom User Configs, E= macs Distributions, etc.)':
<= div>
Also, Uncle Dave's Emacs YouTube tutorial is the best= one for making an Emacs config based upon a 'config.org' file, would re= commend this 100x:
Hope this helps!

Sincerely,
=

Sam

On Mon, Jul 4= , 2022, at 9:44 AM, Stephen Eglen wrote:
I see many users are switching to using a = 'literate programming'
approach to tangling their .emacs f= ile from an org file.

Has anyone solved the= following problem though?  If I have a file called
c= onfig.org containing:

* test
=
#+begin_src emacs-lisp
  (defun quick-= test ()
    "interactive"
&nb= sp;   (* 3 9)
  )
#+end_src


and then in my .emacs file I = do:

(org-babel-load-file "~/config.org")

quick-test is indeed defined, but when I do C= -c f RET quick-test RET it
takes me to config.el (a tangle= d file, suitable for computers, not
humans), rather than c= onfig.org.  Is it possible instead to get the
editor = to jump to the definition in config.org?

St= ephen




--3ecae71830c84dffb8ea8037f0fd3f41--