* Customize headline faces
@ 2022-04-03 13:25 Edouard Debry
0 siblings, 0 replies; only message in thread
From: Edouard Debry @ 2022-04-03 13:25 UTC (permalink / raw)
I wanted to customize the headline fonts. I ended up writing this
in my emacs configuration :
`(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))
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
Do you know how to write the same local settings in a .dir-locals.el
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-03 13:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 13:25 Customize headline faces Edouard Debry
Code repositories for project(s) associated with this inbox:
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).