From: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: Bastien <bzg@gnu.org>,
emacs-orgmode@gnu.org, Jack Erwin <jack@jugband.net>
Subject: Re: Using org-mode as day planner
Date: Fri, 10 Aug 2012 09:47:39 -0400 [thread overview]
Message-ID: <CAHRqSkQRM94aCVNTkELxQEgE5x2-2xmMEtg+EvLb=gctnXXnXA@mail.gmail.com> (raw)
In-Reply-To: <CA+M2ft-aW_hvsNXJaKf0sJvyBr-tvSumTGH_ownHFTFA1TR6uA@mail.gmail.com>
Hi,
On Fri, Aug 10, 2012 at 8:46 AM, John Hendy <jw.hendy@gmail.com> wrote:
> On Fri, Aug 10, 2012 at 3:09 AM, Bastien <bzg@gnu.org> wrote:
>> Hi Jack,
>>
>> Jack Erwin <jack@jugband.net> writes:
>>
>>> So, a couple of questions:
>>>
>>> 1) Is this a sane approach? My elisp is average at best, and the
>>> org-mode devs could probably think of a more graceful way to do this.
>>
>> I don't know.
>>
>> If I were you, I would give Org a little more time before trying to
>> make it behave as planner behaves.
>>
>> Also, you might be interested in org-datetree.el, which helps storing
>> things relatively to a date, which sounds a bit more `à la planner'.
>
> Out of curiosity, do date trees currently have any built in search
> functions or sparse tree searching ability? I currently use timestamps
> to capture things under the current month like this:
>
> * Journals
> ** 2012 August
> *** [2012-08-09 Fri] Did something
> - Notes
> - About
> - What I did
>
> This is nice as I need to print my notes for an intellectual property
> documentation notebook. I have a recurring deadline todo to remind me
> to print my orgmode notes and permanently tape them in my IP notebook.
> With timestamps (and the new sparse tree time functionality you
> added!) I can just search for all time stamps after my last completion
> date, mark any relevant with :export: and am on my way. When done, I
> can just replace-string :export: -> "" and the file is back to normal.
>
> Date trees would make this easier as I like using capture... but I
> don't like having to change my .emacs each month to make the
> adjustment of =** July 2012= as the target headline to =August 2012=.
> Date trees are the obvious way to be able to do this, but they don't
> have any of the neat search functionality that I know of.
>
You could try replacing "<Current Month>" with =,(format-time-string
"%B")= in your capture template (just make sure to use a backtick
rather than a quote. The snippet below would provide just such a
capture template that expands to "<Month> <Year>" automatically
without any intervention on a monthly or annual basis.
It doesn't include the inactive timestamp, or any other markings, but
those can be easily added or adapted from the existing template.
#+begin_src emacs-lisp
(setq org-capture-templates
`(("t"
"Test"
entry
(file+headline "~/test/test-capture.org"
,(format "%s %s"
(format-time-string "%B")
(format-time-string "%Y"))))))
#+end_src
>
> Thanks,
> John
>
>>
>> http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=lisp/org-datetree.el;hb=HEAD
>>
>>> 2) Is there a reason that the org-agenda-after-show-hook is only called
>>> when using org-agenda-goto and not org-agenda-switch-to, or is this a
>>> bug?
>>
>> A leftover, fixed now, thanks!
>>
>> --
>> Bastien
>>
>
Regards,
--
Jon
next prev parent reply other threads:[~2012-08-10 13:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 17:41 Using org-mode as day planner Jack Erwin
2012-08-10 8:09 ` Bastien
2012-08-10 12:46 ` John Hendy
2012-08-10 13:47 ` Jonathan Leech-Pepin [this message]
2012-08-11 9:34 ` Bastien
2012-08-12 15:48 ` John Hendy
2012-08-13 18:20 ` Martin Pohlack
2012-08-13 18:43 ` Jambunathan K
2012-08-13 18:51 ` Bastien
2012-08-14 8:11 ` Bastien
2012-08-10 11:46 ` Charles Philip Chan
2012-08-10 12:28 ` Charles Philip Chan
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='CAHRqSkQRM94aCVNTkELxQEgE5x2-2xmMEtg+EvLb=gctnXXnXA@mail.gmail.com' \
--to=jonathan.leechpepin@gmail.com \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=jack@jugband.net \
--cc=jw.hendy@gmail.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).