emacs-humanities
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-humanities] highlighting parts of the org file


From: l@tlo
Subject: Re: [emacs-humanities] highlighting parts of the org file
Date: Sun, 18 Jun 2023 07:49:45 +0900


> On Jun 17, 2023, at 22:25, Ihor Radchenko <yantar92@posteo.net> wrote:
> 
> "l@tlo" <lists@traduction-libre.org> writes:
> 
>>> Perhaps you could try something like this to make the highlighting 
>>> permanent?
>>> 
>>> ┌────
>>> │ ;; Alist of the form '((REGEXP . FACE) ...)
>>> │ (setq ev/hi-lock-permanent-keywords
>>> │       '(("@(.+)" . hi-red-b)))
>>> │ 
>>> │ (defun ev/hi-lock-permanent-highlight ()
>>> │   (hi-lock-mode 1)
>>> │   (mapc (lambda (r)
>>> │           (highlight-regexp (car r) (cdr r)))
>>> │         ev/hi-lock-permanent-keywords))
>>> │ 
>>> │ (add-hook 'org-mode-hook 'ev/hi-lock-permanent-highlight)
>>> └────
>>> 
>> I looked for documentation about hi-red-b but could not find anything.
> 
> It is a face. Try M-x describe-face <RET> hi-ref-b <RET>
> 
>> It looks like it produces a bold red highlighting, but counterintuitively 
>> hi-red puts everything in a yellow background...
> 
> You can use any other face. Try M-x list-faces-display <RET>
> Or you can customize hi-red-b face.

hi-reb-b is not in that list.


-- 
Jean-Christophe Helary @jchelary@emacs.ch
https://traductaire-libre.org
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]