From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Gendre?= Newsgroups: gmane.emacs.help Subject: Using Org-mode for literate Emacs configuration with use-package Date: Tue, 09 Jul 2024 21:39:52 +0200 Message-ID: <87le2acq2f.fsf@k-7.ch> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32765"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 29.4 To: GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 09 21:40:42 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sRGhe-0008Pp-5G for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Jul 2024 21:40:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRGgy-0005S9-VY; Tue, 09 Jul 2024 15:40:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRGgw-0005Rj-Db for help-gnu-emacs@gnu.org; Tue, 09 Jul 2024 15:39:58 -0400 Original-Received: from 96-100-31-185.ftth.cust.kwaoo.net ([185.31.100.96] helo=k-7.ch) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRGgu-00011Q-Nk for help-gnu-emacs@gnu.org; Tue, 09 Jul 2024 15:39:58 -0400 Original-Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 1941EE8109 for ; Tue, 9 Jul 2024 21:39:53 +0200 (CEST) Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147132 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I am using Org-mode and the elisp function `(org-babel-load-file)` to write my Emacs configuration into an Org-mode document. It's very useful to document my configuration and I can quickly do exports to HTML or PDF when a friend want to know more about my configuration. But, I have a problem. Sometimes, I need to split a package configuration into multiple sections of my Org-mode document. For example Org-mode, because I set a lot of settings. By spiting my config, I can correctly document each option and organize it in a more comprehensible way. But with the elisp function `(use-package)`, I need to join each package configuration into the call of `(use-package)` function. Which prevent me from splitting my config into Org-mode sections. I was thinking of writing Org-mode source block with different parts of my `(use-package)` call, so I can distribute it into different section of my Org-mode document. But in this case, I can no-longer evaluate my `(use-package)` call directly from my Org-mode document. Do you have any suggestion=C2=A0? How do you manage this problem=C2=A0? Best regards =2D------ Gendre S=C3=A9bastien --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmaNkggLHHNlYkBrLTcu Y2gACgkQtYb3x3I54p6Ziw/9GuO/hLtF0vafCwFWlY6zNYkvzUv4nIr6F6zjO3lR 5f56ybMPCttCQpim4gh+Y10P3iKtQloemcFmUgbNArtArFha47yiLt+uoRQ6V6VB dYoQzVxtkLBrBA/yj1bi/oEB+T7qBuWUe4sCPA8Az2H1QWKggNgQgJZW6CfT1V4T lAHNDOcGJX89SIF94pqNJmezb6pEKVn0lMl56DxrK9+0SW64O2dVfPxs9G8M/lHN XcsSKnhybvupxwJf4wP4nCeiBCJj0FHOt84HOLCD10Qu3tYe11aOdmcvDwEO7Wt3 WDSglBg4bnaa/AmosTvAtDz5mJnZC9LKkuRoyxkGzEWG/QZ9ctssp1SjJ19CZu3G FpsdCRdB3LjSzajxgqgqvA/khlLwU0X+Gu05wwQron17eDGHtk1dYnSetrHBZ0BL ozuXs8PjQeQTStq984sZw+oRR7aTZ207IHe5YRv5XqroLrkXJaXmtQ1moOK5VSys wNvL5D9jUIsy1fj8rfa+ET5Y8P9LBP7ZR3KOYFgq0NKsBgeV+WV/1aWf332ht1Lj 32WDo8CgBuCiF5OQOeG8GVXFRu/hsUFlQ9v7YO7147rIy953PjO8lSAt6d9Q931o Q/eyg1g+5r/RwnzDtEn+3JZm3NXbJTbmVp/ZQD6gve93Pu3iEs1BtMGmyURBa08a LR0= =1+/U -----END PGP SIGNATURE----- --=-=-=--