From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: capture template and writeroom mode ? Date: Mon, 03 Jul 2017 05:46:32 +0200 Message-ID: <877ezqkwrr.fsf@gnu.org> References: <3565C34A-73CA-4A0C-ACA4-19655368A25E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRsJu-0005LS-SQ for emacs-orgmode@gnu.org; Sun, 02 Jul 2017 23:46:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRsJt-0001aW-TQ for emacs-orgmode@gnu.org; Sun, 02 Jul 2017 23:46:42 -0400 In-Reply-To: <3565C34A-73CA-4A0C-ACA4-19655368A25E@gmail.com> (Jean-Christophe Helary's message of "Sun, 2 Jul 2017 23:27:55 +0900") 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" To: Jean-Christophe Helary Cc: Org-mode Hi Jean-Christophe, Jean-Christophe Helary writes: > 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've not tested, though. -- Bastien