From: "Thomas S. Dye" <tsd@tsdye.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs-orgmode@gnu.org, andrea <andrea.crotti.0@gmail.com>
Subject: Re: [babel] Moving to babel the whole configuration
Date: Tue, 26 Jan 2010 13:24:43 -1000 [thread overview]
Message-ID: <F7C5B81F-8079-477E-A136-649FE8DFACB4@tsdye.com> (raw)
In-Reply-To: <87sk9sa9ln.fsf@stats.ox.ac.uk>
On Jan 26, 2010, at 10:34 AM, Dan Davison wrote:
> "Eric Schulte" <schulte.eric@gmail.com> writes:
>
>> Manish <mailtomanish.sharma@gmail.com> writes:
>>
>>> On Thu, Jan 21, 2010 at 10:15 PM, Dan Davison wrote:
>>>> andrea writes:
>>>>
>>>>> I'm really tempted to move all my emacs configuration in only
>>>>> one big file. This would also help me to make it more
>>>>> consistent and readable.
>>>>>
>>>>> But I'm afraid to mess up something, in theory I just need: -
>>>>> a simple org and babel loader - one big file containing
>>>>> everything
>>>>>
>>>>
>>>> Hi Andrea,
>>>>
>>>> I've used a single org mode file to keep all my emacs
>>>> configuration code for the last 5 months or so and I have not
>>>> had any problems at all. I highly recommend it. I am using a
>>>> simple set up:
>>>>
>>>> My ~/.emacs contains
>>>>
>>>> ------------------------------------------------------------------
>>>> (add-to-list 'load-path "/usr/local/src/org-mode/lisp")
>>>> (add-to-list 'load-path "/usr/local/src/org-mode/contrib/lisp")
>>>> (require 'org-install) (require 'org-babel-init)
>>>> (org-babel-load-file
>>>> "~/config/emacs/emacs.org")
>>>> ------------------------------------------------------------------
>>>>
>>>> and all the rest of my emacs config code is in
>>>> ~/config/emacs/emacs.org
>>>>
>>>
>>> This works very nicely. Thank you.
>>>
>>> I am thinking about making my config a little leaner while I
>>> reorganize without affecting functionality I have gotten used to by
>>> preventing sections of config from loading. I thought
>>> setting :tangle
>>> to `no' should help but the default is already `no' and all my
>>> config
>>> is loaded. How would one go about marking a section of
>>> configuration
>>> so that it remains in the configuration file but does not get
>>> tangled
>>> while Emacs boots?
>>>
>>
>> Hi Manish,
>>
>> I think this will require a little development/bug-fixing on my part
>> before it works easily. As I recall the elisp tangling in
>> `org-babel-load-file' is fairly aggressive and may not respect tangle
>> header arguments. But the method you described above (setting the
>> tangle header argument to no -- either in a subtree property or by
>> block) is certainly the correct approach.
>
> Hi Eric -- I believe you already have it working in exactly this
> way :)
>
> Manish -- could you double check please? I use :tangle no to exclude
> blocks of elisp from my emacs init file, and it is working.
>
> Dan
>
>>
>> I'll let you know when I find some time to look into this.
>>
>> Best -- Eric
Hi all,
I'm having the same experience as Dan. :tangle no keeps code blocks
in my .org file from showing up in my .el file.
All the best,
Tom
next prev parent reply other threads:[~2010-01-26 23:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 16:19 [babel] Moving to babel the whole configuration andrea
2010-01-21 16:45 ` Dan Davison
2010-01-26 17:28 ` Manish
2010-01-26 18:31 ` Eric Schulte
2010-01-26 20:34 ` Dan Davison
2010-01-26 23:24 ` Thomas S. Dye [this message]
2010-01-27 4:15 ` Manish
2010-01-21 17:43 ` Thomas S. Dye
2010-01-22 16:14 ` Eric S Fraga
2010-01-22 18:53 ` Richard Riley
2010-01-22 20:44 ` Eric S Fraga
2010-01-22 20:46 ` Greg Newman
2010-01-25 17:25 ` Manish
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=F7C5B81F-8079-477E-A136-649FE8DFACB4@tsdye.com \
--to=tsd@tsdye.com \
--cc=andrea.crotti.0@gmail.com \
--cc=davison@stats.ox.ac.uk \
--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).