all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Faces for org blocks that are not "src"
@ 2023-12-12 22:12 Maske
  2023-12-13 10:42 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Maske @ 2023-12-12 22:12 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 752 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Faces for org blocks that are not "src"
  2023-12-12 22:12 Faces for org blocks that are not "src" Maske
@ 2023-12-13 10:42 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-12-13 10:42 UTC (permalink / raw)
  To: Maske; +Cc: Org-mode

Maske <maske1foro@gmail.com> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-13 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 22:12 Faces for org blocks that are not "src" Maske
2023-12-13 10:42 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.