From: Bernt Hansen <bernt@norang.ca>
To: Aankhen <aankhen@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Enforcing drawer setup
Date: Fri, 01 Apr 2011 13:01:37 -0400 [thread overview]
Message-ID: <87liztj47i.fsf@norang.ca> (raw)
In-Reply-To: <AANLkTikbW86qSAnJ_EnCSmN73M5eXqYLXN-V+gpGg813@mail.gmail.com> (aankhen@gmail.com's message of "Fri, 1 Apr 2011 18:17:10 +0530")
Aankhen <aankhen@gmail.com> writes:
> Hi,
>
> Is there any command I can run to put into effect my
> ‘org-log-into-drawer’ setting? I recently changed it to ‘t’, but I
> have a fair number of existing entries where it was ‘nil’, meaning
> that the files as a whole look rather haphazardly organized.
>
> Thanks,
> Aankhen
Hi Aankhen,
There's not built-in function to accomplish this that I am aware of.
This is a bit of a hack but it will probably get you the result you
want. If you set org-clock-into-drawer to the drawer than you want and
set org-clock-out-remove-zero-time-clocks then you can visit each
heading using some elisp code, clock in and immediately clock out the
headline and it should create a drawer and wrap your existing data.
I haven't actually done this... so YMMV.
HTH,
Bernt
next prev parent reply other threads:[~2011-04-01 17:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 12:47 Enforcing drawer setup Aankhen
2011-04-01 17:01 ` Bernt Hansen [this message]
2011-04-01 19:00 ` Aankhen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87liztj47i.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=aankhen@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.