all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help: how to extend org-mode markup?
@ 2020-09-25  6:51 Pierre-Henry F.
  2020-09-25  7:24 ` Christian Moe
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Pierre-Henry F. @ 2020-09-25  6:51 UTC (permalink / raw)
  To: emacs-orgmode\@gnu.org

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

Hello,

I would like to extend the org-mode markup.

For example, I would like to change the face of a keyword, say: :next: .

Whenever :next: is displayed from an org-mode buffer, it should show up in using an arbitrary face.

I tried this:

(defun org-add-my-extra-markup ()
(add-to-list 'org-font-lock-extra-keywords
'("[^\\w]\\(:next:\\)[^\\w]"
(1 font-lock-warning-face t))))

(add-hook 'org-font-lock-set-keywords-hook #'org-add-my-extra-markup)

But it does not work.

So: how to extend org-mode markup?

Many thanks,
PHF

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

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

end of thread, other threads:[~2020-09-25  9:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25  6:51 Help: how to extend org-mode markup? Pierre-Henry F.
2020-09-25  7:24 ` Christian Moe
2020-09-25  7:26 ` Ihor Radchenko
2020-09-25  7:38   ` Pierre-Henry F.
2020-09-25  8:07     ` Christian Moe
2020-09-25  8:13     ` Ihor Radchenko
2020-09-25  8:14       ` Ihor Radchenko
2020-09-25  8:31       ` Pierre-Henry F.
2020-09-25  9:52         ` Pierre-Henry F.
2020-09-25  7:55 ` Eric S Fraga

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.