From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gO3IAGmgSWIiKQEAgWs5BA (envelope-from ) for ; Sun, 03 Apr 2022 15:26:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GAIgOWigSWLbSQAAauVa8A (envelope-from ) for ; Sun, 03 Apr 2022 15:26:00 +0200 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 638582A37D for ; Sun, 3 Apr 2022 15:26:00 +0200 (CEST) Received: from localhost ([::1]:40680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nb0Ew-00035w-Ta for larch@yhetil.org; Sun, 03 Apr 2022 09:25:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb0E6-00035j-QU for emacs-orgmode@gnu.org; Sun, 03 Apr 2022 09:25:06 -0400 Received: from [2a00:1450:4864:20::42d] (port=40471 helo=mail-wr1-x42d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nb0E4-0007Jo-SB for emacs-orgmode@gnu.org; Sun, 03 Apr 2022 09:25:06 -0400 Received: by mail-wr1-x42d.google.com with SMTP id d7so10657547wrb.7 for ; Sun, 03 Apr 2022 06:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=+vr7aCjUnaDkNc0/g0dB8RL1qg9aaDMcrRhaJc8QhDg=; b=H1aKd5e9JAr+0jHdK84P0EQfUIMsfHWhxrfIcVoHEyufubGzlgHYraD5SmU5QhAyA9 KIghmQ78IPcMOFvEQoSxP4vo1Oq9JfHRMQ9PJ6RC7b1WYBnhwgtZF9IaTwA6HuIenQhS 484mtW7B1PZ8ZjuoDmsrP8u+8P1jPntoTOuN9xY3KQPZnNbC9QPyPS4gl8KaVmNOLAMG gAAIE9t8NhJDxhA2feHd6s76sL0AKr5AhSPJBzMBsbxyqlZJ4fPOO3UyBGmaFhLez0dl TiRzoDfZcbmy0zvP9YwkvPjcdvREAqid1BxcYPH9+eeXmB/X+dl4alNQf1c43XxE81ab NbEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=+vr7aCjUnaDkNc0/g0dB8RL1qg9aaDMcrRhaJc8QhDg=; b=Zj9YiiufvUqj1+MvXsZY0GM/09mrirzjTbKYk+vQln1ov9aJxpwzmlKEENyaOutH8Z Nd5vmKtEbWx0wBzONcKEJwOiKBlUxrRsKmQzswEvTx8Nl3UJjnUCvy98jVAZ5szsr7l4 VM5Q3GcjAwMKd9IqEle2kLFIY4VPhCHqhvMJRycNwTjfLcwdpf/0G/pV5To7d9CfC0Ux i1zF9Ka2YIl3U0RYoW+zrCoUvWp8bZiScJDkns73IRtIDL9aboiZbEuOkGVww36QHV+k pbizG6bZRg8Bv40IjQ17EovI7GRfrGNdvJUvbZrQ7PuB3kDI5Hy+L6Ir1a1TMpcFxGtr +mSw== X-Gm-Message-State: AOAM531lKgRkRpZ4aDmLvgx+WU6eISMgWpXZYoBv7uH9RBNiioyuYLH8 Ael1XJysN8d5+Emm6VpD+wbWZeVXC2w= X-Google-Smtp-Source: ABdhPJxIEZH5zlbtlO00RHS4dShEQKzDOJrI8iGrmbarS0yoQP8AJJOnujpgxJUdiHxjGFOK7WZHLg== X-Received: by 2002:a5d:5447:0:b0:206:102b:9e77 with SMTP id w7-20020a5d5447000000b00206102b9e77mr1096441wrv.240.1648992302893; Sun, 03 Apr 2022 06:25:02 -0700 (PDT) Received: from paquerette (176-136-230-16.abo.bbox.fr. [176.136.230.16]) by smtp.gmail.com with ESMTPSA id m63-20020a1c2642000000b0038e5fa06b50sm4357573wmm.31.2022.04.03.06.25.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 06:25:02 -0700 (PDT) From: Edouard Debry To: emacs-orgmode@gnu.org Subject: Customize headline faces Date: Sun, 03 Apr 2022 15:25:00 +0200 Message-ID: <86wng647v7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=edouard.debry@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648992360; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+vr7aCjUnaDkNc0/g0dB8RL1qg9aaDMcrRhaJc8QhDg=; b=S+pkHleDw+HJYLpobp4DtCcXqE7Rgjw9JA2nLXaKOjDFL4Qaeedm7VusgTtDXJz8xsPv7O D+5kyM5JnemBTDZXyYmpSWK4M/q4/g7cxXX8/dWaG3h/mqzQJj//VZ76+nLVNd58KAt7vE vPJ4HJE8As00yMOpaq5AXZWnNuIJASO7f1vWyPFOkYhK/Ja+ZiPSWJtrDz36EPhzqLyFsx mFk4oNwmljc92+9Ch8fb7bCu72YEY8D22d676U5lmRYdtPvbRqNZsekha0eizON52XIFLd 38EoYh24XQqOwHTN0m+edzIzr+T6r2X8+sJL+q+1+S0UOZjFztU4yvQyRVUUOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648992360; a=rsa-sha256; cv=none; b=qic6dbxrvRmYGsLyaxBMyNr3HpWTE0kGwL8haJRqg5r5QO5upLQIiFcvg1K42j47hQZXGV KDhucHrQ9r5HcCgU5UHl1DNQ0+3pvO6y/NIruA32zMBtjCtg3ei1gDtt741GKLcLj7/ldx 7usj3YQyscPXAIw6s37YB0UcaLMCFBgODVeXgoPgR8DMUUXC/W0QKHhVITeGMzgkvyVGIN OpYaQBC44I4NzXPHyQ9Qt/wUL4oZwnisFJYVrI0tx4cfyNvKL//pCtfXIfLu4mO2erWdF+ 07jY+ssN6W2/3bjX73zAXBQgcLTlmsja2A17YX/fDFBl0C98YmwKmCwl5ndo+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=H1aKd5e9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.18 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=H1aKd5e9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 638582A37D X-Spam-Score: -9.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9UcBEToFs8AN Hello, I wanted to customize the headline fonts. I ended up writing this in my emacs configuration : <================================================> (custom-theme-set-faces 'user `(org-document-title ((t (:height 1.5)))) `(org-level-1 ((t (:inherit outline-1 :height 1.4)))) `(org-level-2 ((t (:inherit outline-2 :height 1.3)))) `(org-level-3 ((t (:inherit outline-3 :height 1.2)))) `(org-level-4 ((t (:inherit outline-4 :height 1.1))))) <================================================> This changes nothing but the height of the font used for #+TITLE: and headlines (lines beginning with one or more *). I found this useful when writing org documents in order to export them later to pdf or docx. However, when dealing with my todo or agenda files, this messes up the display because these files contains nearly mostly headings. So, I wanted to disable the above settings just for my todo and agenda files. I found that putting this at the end of each file works : # Local Variables: # mode: org # org-level-faces: ((:inherit outline-1 :height 1.0) (:inherit outline-2 :height 1.0) (:inherit outline-3 :height 1.0) (:inherit outline-4 :height 1.0)) # End: I did not find the proper setting for the document title. But the more annoying is that I have to put this in every file and each time I open one, I am asked whether or not I want to apply unsafe settings. I would like to translate these local settings to a .dir-locals.el file, so that it becomes valid once of all and it is applied for all files in the directory. Do you know how to write the same local settings in a .dir-locals.el file ? Regards