From: Dilip via "General discussions about Org-mode." <emacs-orgmode@gnu.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 [thread overview]
Message-ID: <87ed7fjmyx.fsf@protonmail.com> (raw)
In-Reply-To: 87le2acq2f.fsf__13832.1084481262$1720874764$gmane$org@k-7.ch
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 <<org-conf>> and have any number of src block with
same #+name:org-conf name
https://github.com/rasendubi/dotfiles
Best,
Dilip
next parent reply other threads:[~2024-07-27 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87le2acq2f.fsf__13832.1084481262$1720874764$gmane$org@k-7.ch>
2024-07-27 7:47 ` Dilip via General discussions about Org-mode. [this message]
2024-07-09 19:39 Using Org-mode for literate Emacs configuration with use-package Sébastien Gendre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ed7fjmyx.fsf@protonmail.com \
--to=emacs-orgmode@gnu.org \
--cc=idlip@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).