emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Change default org file to file note to.
Date: Wed, 30 May 2012 07:49:45 +0100	[thread overview]
Message-ID: <85k3zu17ue.fsf@news.eternal-september.org> (raw)


I have an org template 

,----
| 			      ("j" "journal" entry (file+datetree "journal.org")
| 			       "* %?\n\t:PROPERTIES:\n\t:DateCreated: %T\n\t:Link: %a\n\t:END:\n")
`----

How could I go about altering this or approaching the problem in a
different manner in order to have the first journal entry I create be
defaulted to journal.org but any further ones using the last file logged
to?

Use case:

I start work and hit C-c c j to create a journal item. Its a general
"journal" so journal.org is ok ..  "hangover this morning". I then
stretch my arms, yawn and open up files for project X. I then create a
new journal entry ("Must fix issue A for projectX") but hit C-c C-w to
write it to ProjectX.org/journal instead of journal.org. I then want all
further journal entries (using the template and default key above) to
default to ProjectX.org/journal since thats the project I'm working on.

Possible? I understand I could have a specific key sequence with no
target file and I suspect that would default to last file/section but I
really want this to stick with the journal sections of hte last project
journalled to.

                 reply	other threads:[~2012-05-30  6:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=85k3zu17ue.fsf@news.eternal-september.org \
    --to=rileyrg@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).