branch: elpa/tuareg commit 50c96b3f469765b6871c5120c3b6051e30ee84a1 Author: Mattias Engdegård <matti...@acm.org> Commit: Christophe Troestler <christophe.troest...@umons.ac.be>
Use `font-lock-doc-markup-face` when available --- tuareg.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tuareg.el b/tuareg.el index ecc4af0..6a75d4a 100644 --- a/tuareg.el +++ b/tuareg.el @@ -472,7 +472,9 @@ Valid names are `browse-url', `browse-url-firefox', etc." 'tuareg-font-lock-extension-node-face) (defface tuareg-font-lock-doc-markup-face - '((t :inherit font-lock-constant-face)) ; FIXME: find something better + `((t :inherit ,(if (facep 'font-lock-doc-markup-face) + font-lock-doc-markup-face ; Emacs ≥28. + font-lock-constant-face))) "Face for mark-up syntax in OCaml doc comments." :group 'tuareg-faces)