From: Rainer Stengele <rainer.stengele@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: prevent drawer from folding for specific subtree
Date: Sun, 16 Dec 2012 19:02:09 +0100 [thread overview]
Message-ID: <50CE0CA1.6050107@online.de> (raw)
In-Reply-To: <kafhuo$uj$1@ger.gmane.org>
Am 14.12.2012 16:51, schrieb Rainer Stengele:
> Hi all!
>
> I have subtrees which I do clock regularly, never closing them.
> I always do have to adjust the clockings manually.
> When I am bookmark-jumping to one of these subtrees and then clock in
> the clock drawer is always closed - which normally is fine. But in this
> case I would like to maybe have a property signaling the drawer to open
> as soon as I do clock the task in.
>
> Any idea?
>
> Thanks,
> Rainer
>
>
>
Hi again,
what I really intended to get was this (see doc string)
(defun rst/clock-organisation-todo ()
"jump to organisation todo, clock in and out,
move starttime to previous full quarter of hour, endtime to following full quarter of hour,
place point on starttime to be able to adjust the clockings"
(interactive)
(save-excursion
(bookmark-jump "Organisation")
(outline-previous-visible-heading 1)
(show-subtree)
(org-clock-in)
(search-forward "CLOCK: ")
(end-of-line)
(backward-char 2)
(org-shiftcontroldown)
(org-clock-out)
(org-shiftcontrolup)
(org-shiftdown)))
This will save me several keystrokes every day.
Sorry this is beginners emacs lisp.
Rainer
prev parent reply other threads:[~2012-12-16 18:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 15:51 prevent drawer from folding for specific subtree Rainer Stengele
2012-12-15 8:41 ` Bastien
2012-12-15 18:05 ` Rainer Stengele
2012-12-16 18:02 ` Rainer Stengele [this message]
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=50CE0CA1.6050107@online.de \
--to=rainer.stengele@online.de \
--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).