From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yGURG3zGWWEWyQAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 17:04:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GPm0FnzGWWFGQQAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 15:04:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CED574C8C for ; Sun, 3 Oct 2021 17:04:27 +0200 (CEST) Received: from localhost ([::1]:41160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX32Q-0004o7-TJ for larch@yhetil.org; Sun, 03 Oct 2021 11:04:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX31M-0004P1-4f for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 11:03:20 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:49223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX31J-0007kw-L6 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 11:03:19 -0400 Received: (Authenticated sender: lists@traduction-libre.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 7A8BA1C0006 for ; Sun, 3 Oct 2021 15:03:13 +0000 (UTC) From: Jean-Christophe Helary Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: face for org-capture template Message-Id: <4327B210-680E-4434-B608-1BAD8CD379AC@traduction-libre.org> Date: Mon, 4 Oct 2021 00:03:11 +0900 To: orgmode X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.183.197; envelope-from=lists@traduction-libre.org; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633273468; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=/cDjBdrqaVMbRc8AaZtxXVg6OaID0YoxT3YPpAdH1BU=; b=Gi/4u7gkGI9aggeO+wGp2ulX/nYB+eDbZFbra6A7VQ2C8uRJcInel74NG64Qc3jqd/YQL9 OHH6vmf/FLRPDjXCE4Ph+/Tdi2BknX0pAVORGmswTEh6qwajmfxHaROtaUuYwmQTCpSdSA dU86pQfci1oJdppBkxgCm8xpl4wYp9xg7n6FsSKWabaLZG9WbX3vQ5/qEwVkXjiasrF/vq NhuxqVQ3lWK7wBsPo6avz9jytTtdnv4TnqPTU7Z5Ymg7nKViYrfuE8jZ8jd8NwssMsHPY8 fQ1ZZn5IEN1nMIYrhHgqXCVHeXbVPm/kUijHBikN6/m8HF+Beh4iZSyBuQZrWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633273468; a=rsa-sha256; cv=none; b=swSZZ1gdT7rFEUl8WSluFCv4g3Heu1hGhVqvXlr80v3HNFxAzDn+SyzLbuRxIF91jksgWU PupStlMPRE9nEz11pGcSwCVasueZtv3eHGL7AFveRL6ex7d/hpN+u9i23XgwBfpyqUmiBl 1ger8dKbCiXHRItTo71/693j8D+HA0/0AX4Po7GFmSLtV48R/Qjl6SEr+5N4Ki08PCIk/z uv7qpT1MNiqWCxcAft+URH8a1baPNh4ZxujWpj1AndTdRlRczXsGxuQJ1V7f9J2fIli/sv 3Rf27hOoLrx5VioQYUI3XPF6NdivXGWW2ZplUztEBkvmq5v0ov8QdcnJVcLeag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: CED574C8C X-Spam-Score: -1.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: M97UPRfz2shK I just found how to change the face based on the major mode thanks to = buffer-face-mode and I'd like to know if there is a similar mechanism to = apply a given face to the template buffer. What I have is: ;; polices fixes pour modes ;; https://www.emacswiki.org/emacs/FacesPerBuffer#toc3 (defun my-buffer-face-mode-fixed () "Sets a fixed width (monospace) font in current buffer" (interactive) (setq buffer-face-mode-face '(:family "PT Mono" :height 115)) (buffer-face-mode)) (add-hook 'org-capture-mode-hook =E2=80=99my-buffer-face-mode-fixed) But that applies the fixed font to the capture target and not to the = template buffer... I'm sure the answer is somewhere right under my nose... --=20 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/