Emacs mise en surbrillance en mode texte
-
18-09-2019 - |
Question
Y at-il un moyen d'obtenir un mot à rendre avec un visage différent en mode texte?
La solution
Consultez `highlight-regexp. Il suffit de taper le mot que vous voulez changer le visage pour (bien qu'il puisse être une expression régulière).
M-x highlight-regexp
highlight-regexp is an alias for `hi-lock-face-buffer' in
`hi-lock.el'.
It is bound to M-s h r.
(highlight-regexp regexp &optional face)
Set face of each match of regexp to face.
Interactively, prompt for regexp then face. Buffer-local history
list maintained for regexps, global history maintained for faces.
Use M-p to retrieve previous history items,
and M-n to retrieve default values.
Autres conseils
Oui,
Qu'est-ce que vous voulez est font-lock-mode.
Voir ici: http: // www. gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html
Plus précisément vous voulez activer font-lock-mode
puis spécifiez une liste de mots-clés via font-lock-add-keywords
.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow