7

I want to set a different font for org-mode contents. Strangely, setting

'(org-level-1 ((t (:inherit variable-pitch))))

has the effect on headers as intended. However, setting

'(org-default ((t (:inherit variable-pitch))))

does not impact the text on normal org-mode text. They're still fixed-width font.

If I run describe-face on those text, it just says default instead of org-default. Not sure if that's the normal behavior.

How can I manually set font for normal org-mode content text?

8
  • 1
    It looks like the answer is on the mailing list -- i.e., buffer-face-mode needs to be enabled for buffer-local face settings such as changing the 'default: comments.gmane.org/gmane.emacs.orgmode/84250 Commented Aug 18, 2015 at 3:44
  • @lawlist That worked. Unfortunately it seems to turn everything within org-mode into variable-pitch... not only the normal texts. Commented Aug 18, 2015 at 4:01
  • @lawlist the OP is correct, buffer-face-mode changes all faces Commented Jan 17, 2017 at 21:30
  • Why not use variable-pitch-mode for this? (add-hook 'org-mode-hook (lambda () (variable-pitch-mode t))) Commented Jan 17, 2017 at 22:18
  • @RichardBorder Actually I even forgot I asked this question. I already found a solution to what I need by using a combination of `variable-pitch-mode and customized face settings. You can see the related questions at stackoverflow.com/a/16819449/1460448 and emacs.stackexchange.com/questions/14824/… Commented Jan 18, 2017 at 9:50

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.