From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Change default org file to file note to. Date: Wed, 30 May 2012 07:49:45 +0100 Message-ID: <85k3zu17ue.fsf@news.eternal-september.org> Reply-To: emacs-orgmode@gnu.org Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZcjH-0006DL-Dg for emacs-orgmode@gnu.org; Wed, 30 May 2012 02:50:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZcjF-0003VG-J2 for emacs-orgmode@gnu.org; Wed, 30 May 2012 02:49:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:36033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZcjF-0003V9-CN for emacs-orgmode@gnu.org; Wed, 30 May 2012 02:49:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SZcjC-0003mY-5m for emacs-orgmode@gnu.org; Wed, 30 May 2012 08:49:54 +0200 Received: from host-89-241-97-236.as13285.net ([89.241.97.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 May 2012 08:49:54 +0200 Received: from rileyrg by host-89-241-97-236.as13285.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 May 2012 08:49:54 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.