emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Edouard Debry <edouard.debry@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Customize headline faces
Date: Sun, 03 Apr 2022 15:25:00 +0200	[thread overview]
Message-ID: <86wng647v7.fsf@gmail.com> (raw)


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



                 reply	other threads:[~2022-04-03 13:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wng647v7.fsf@gmail.com \
    --to=edouard.debry@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).