emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Customize headline faces


From: Edouard Debry
Subject: Customize headline faces
Date: Sun, 03 Apr 2022 15:25:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]