[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] capture template and writeroom mode ?

From: Jean-Christophe Helary
Subject: Re: [O] capture template and writeroom mode ?
Date: Tue, 4 Jul 2017 11:59:19 +0900

Thank you Bsstien.

> On Jul 3, 2017, at 12:46, Bastien <address@hidden> wrote:
>> What would be the best way to have writeroom mode called in one
>> given capture template and not the others ?
> I would you a (file+)function to get the location:
>    `(file+function "path/to/file" function-finding-location)'
>          A function to find the right location in the file.
>    `(function function-finding-location)'
>          Most general way: write your own function which both visits
>          the file and moves point to the right location.
> then tell the function to use writeroom-mode.

I'm already using the file+datetree target so I guess that's not possible, 
unless I define a function that triggers the writeroom mode *and* adds the 

 ("j" "Journal" entry (file+datetree "~/org/journal.org")                       
               "* %^{Titre} [%<%H:%M>]\n%?\n") ;;; :clock-in t :clock-resume t) 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]