[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-humanities] highlighting parts of the org file
From: |
Ihor Radchenko |
Subject: |
Re: [emacs-humanities] highlighting parts of the org file |
Date: |
Sat, 17 Jun 2023 13:25:13 +0000 |
"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.
--
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>
- 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 <=
- Re: [emacs-humanities] highlighting parts of the org file, l@tlo, 2023/06/17
- Re: [emacs-humanities] highlighting parts of the org file, Ihor Radchenko, 2023/06/18