[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/
- Re: [emacs-humanities] highlighting parts of the org file, (continued)
- Re: [emacs-humanities] highlighting parts of the org file, Marcin Borkowski, 2023/06/11
- Re: [emacs-humanities] highlighting parts of the org file, l@tlo, 2023/06/11
- Re: [emacs-humanities] highlighting parts of the org file, Marcin Borkowski, 2023/06/12
- Re: [emacs-humanities] highlighting parts of the org file, Edgar Vincent, 2023/06/12
- Re: [emacs-humanities] highlighting parts of the org file, l@tlo, 2023/06/12
- Re: [emacs-humanities] highlighting parts of the org file, Edgar Vincent, 2023/06/13
- Re: [emacs-humanities] highlighting parts of the org file, l@tlo, 2023/06/13
- Re: [emacs-humanities] highlighting parts of the org file, Edgar Vincent, 2023/06/13
- Re: [emacs-humanities] highlighting parts of the org file, l@tlo, 2023/06/16
- Re: [emacs-humanities] highlighting parts of the org file, Ihor Radchenko, 2023/06/17
- Re: [emacs-humanities] highlighting parts of the org file,
l@tlo <=
- Re: [emacs-humanities] highlighting parts of the org file, Ihor Radchenko, 2023/06/18