emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: tangle versus org-babel-load-file
Date: Tue, 3 Apr 2018 08:54:39 -0400	[thread overview]
Message-ID: <CAFAhFSXfVRz=AbPh9VK_D+FEuoH6gvqN_86gqqxT+HDRTm9mxQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

I'm experimenting with Uncle Dave's config which is using a minimum init.el
to launch config.org, which is full of elisp babel source blocks. Here's
his relevant launching code:

(when (file-readable-p "~/.emacs.d/config.org")
  (org-babel-load-file (expand-file-name "~/.emacs.d/config.org")))

However, I've seen this example:

(require 'org)
(require 'ob-tangle)
(org-babel-load-file (expand-file-name "~/.emacs.d/myemacs.org"))

which seems to want (require 'ob-tangle). The Uncle Dave setup is working
fine. I guess I don't know how it's tangling (which means running all the
code blocks in the org file, right?) without somehow being told to. But
then what is org-babel-tangle-file doing other than running all the code
blocks in a file? And then there's the :tangle yes parameter on an
individual code block. I'm missing something here. It seems
org-babel-load-file is creating a config.el from the config.org -- which is
a tangle behavior.

LB

[-- Attachment #2: Type: text/html, Size: 1371 bytes --]

             reply	other threads:[~2018-04-03 12:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-03 12:54 Lawrence Bottorff [this message]
2018-04-03 16:16 ` tangle versus org-babel-load-file Nick Dokos

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='CAFAhFSXfVRz=AbPh9VK_D+FEuoH6gvqN_86gqqxT+HDRTm9mxQ@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).