Thank you Bsstien.

> On Jul 3, 2017, at 12:46, Bastien <b...@gnu.org> 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 
datetree...

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

Jean-Christophe 

Reply via email to