From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: capture template and writeroom mode ?
Date: Tue, 4 Jul 2017 11:59:19 +0900 [thread overview]
Message-ID: <902AEE15-DBA8-4E73-8EA5-A08F6802EDA3@gmail.com> (raw)
In-Reply-To: <877ezqkwrr.fsf@gnu.org>
Thank you Bsstien.
> On Jul 3, 2017, at 12:46, Bastien <bzg@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
prev parent reply other threads:[~2017-07-04 2:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-02 14:27 capture template and writeroom mode ? Jean-Christophe Helary
2017-07-03 3:46 ` Bastien
2017-07-04 2:59 ` Jean-Christophe Helary [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=902AEE15-DBA8-4E73-8EA5-A08F6802EDA3@gmail.com \
--to=jean.christophe.helary@gmail.com \
--cc=bzg@gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.