Re: Faces for org blocks that are not "src"

2023-12-13 Thread Ihor Radchenko
Maske  writes:

> Is it possible to change the face of org blocks that don't start by "src"?
>
>
> For example:
>   '(org-src-block-faces '(("ai" variable-pitch)))
>
>
> I think it should affect to:
>
> #+begin_ai blocks, but it doesn't seem to work for me.

`org-src-block-faces' only affects src blocks, not special blocks.
Org mode currently does not support custom faces for special blocks.
All you can do is setting the fontification manually, via
`font-lock-keywords', as you could in an arbitrary Emacs buffer.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Faces for org blocks that are not "src"

2023-12-12 Thread Maske

Is it possible to change the face of org blocks that don't start by "src"?


For example:
 '(org-src-block-faces '(("ai" variable-pitch)))


I think it should affect to:

#+begin_ai blocks, but it doesn't seem to work for me.


Best regards