From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id ONN6Ff2mpGboPgEAqHPOHw:P1 (envelope-from ) for ; Sat, 27 Jul 2024 07:51:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id ONN6Ff2mpGboPgEAqHPOHw (envelope-from ) for ; Sat, 27 Jul 2024 09:51:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722066684; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=LE/MUkRH0ugspPAaMyIDAqGXAnu1F6eI/k78y4qi7B8=; b=CFpS8z+kirm0UPFacDC0Hl9ub+nMTpWIuxmHIhCG+MRcLJsMId1Bm0WLYEQ3ykEkg/oNW9 33eUMtmyvH4lCUmEjBMBvvrbgD4fjFKA9W/fnMCHJQLmKPwN4kFYvfN/RJshEHqPIlFNum +7A2JLOsX7qCTC3Ozkulv/1YMj8y2FG1UD7hkTBtpRqRu3ecy4oDlOSgP/WZhQCQJluzlB BFdXbhET4ApJksafLMjI/O8ojpq9xosepapc00DZrcM7NYdv55GGDFpbCmP51Y9Bi6FM+4 9mS61FSqm6Wkl0+OAJMZTVRDIRNXXIYDVmmgyzKw4pITiU0G0f9uXkmmnAr9eQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722066684; a=rsa-sha256; cv=none; b=hYyOh2aG4dApaW1gU0XdSXVGeFGuJFcUq7nYNq4aaGAmpM7H+zhzCY0hDIvDck1epF8XiG I5zqb+DVZhoZD0wPxSq7fxqkjrhXt7vRFg2/XIKCm0tnNDKdgnN2cbWdkQeEetTz03g9RA luBACHjycrQ9ee/qZVFuCftE3IiO/VAnVzlyev7mpAt5PyuGJk7v9fUw5FpSHu0B05VU+M cyzgb+PR6gX3lAJoGZEc2bW63DZiRED/h+ysfgUxmyF120jD5oH3heMr3AyBhg9KFJadXC Z+bw78KMFYJER6MsnC1mGMDsUlzlzlYU+u0o2lP7/QpIOrzYacFQPjxGaNSYdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 534201A464 for ; Sat, 27 Jul 2024 09:51:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXcC0-0007as-1c; Sat, 27 Jul 2024 03:50:16 -0400 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 1sXcBu-0007af-U1 for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 03:50:12 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXcBs-0002bO-7e for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 03:50:10 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sXcBm-0007uJ-EZ for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 09:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org Subject: Re: Using Org-mode for literate Emacs configuration with use-package Date: Sat, 27 Jul 2024 13:17:02 +0530 Message-ID: <87ed7fjmyx.fsf@protonmail.com> References: <87le2acq2f.fsf__13832.1084481262$1720874764$gmane$org@k-7.ch> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:2LGQqLJnM9TpI5au+vLMai4EZp4= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Reply-to: Dilip From: Dilip via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 534201A464 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.42 X-Spam-Score: -6.42 X-TUID: tV+MRwLJ8fTQ Hi, I also enjoy using literate org config. I cannot think of a way to split config in org src blocks and evaluate it easily. Each src block needs to evaluated, although most of the time while editing itself I do evaluate or =eval-buffer=. There is one way I can think of, that is to use =noweb= inside one block. That might add little noise if you do many splits, but it works. You can do =org-babel-expand-src-block= to get the output. Or you may just use many use-package src block for that package. With =:custom= keyword in use-package, you can add some doc for that variable. Eg: (use-package org :custom (org-ellipsis ".." "Some doc")) I'm interested in knowing others opinion, and how they use it. I use both emacs and nixos config in org-mode. https://github.com/idlip/d-nix/blob/gol-d/d-setup.org Other resource that uses a method that lets you use single noweb reference to tangle all src block name. Eg: You can use just <> and have any number of src block with same #+name:org-conf name https://github.com/rasendubi/dotfiles Best, Dilip