I wanted to customize org-meta-line to make the source code headers look smaller, I'm using this line:

(set-face-attribute 'org-meta-line nil :height 0.5 :slant
 'normal :foreground "#C0C0C0" )

as mentioned here

it looks like this:

org source

but I get this error when my init.el is being loaded:

Warning (initialization): An error occurred while loading 

error: Invalid face, org-meta-line

How can I fix the error?

  • running (set-face-attribute 'org-meta-line ...) works fine in scratch, Is it possible that in your configuration file the 'org-meta-line is not declared at that point in the code? (try to move it forward..) Oct 1, 2018 at 9:15

1 Answer 1


Running (set-face-attribute 'org-meta-line ...) works fine in scratch.

It doesn't in your configuration file because the variable 'org-meta line is not defined at that point in the code.

The solution will be to move it forward, where org is already required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.