help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: [External] : Re: text formating


From: Drew Adams
Subject: RE: [External] : Re: text formating
Date: Sat, 11 Feb 2023 16:56:52 +0000

> How do you underline some words?
> I don’t know how to do it?

1. Some modes use markup of some kind, whether HTML, XML, TeX/LaTeX, Org, or 
whatever.  Check the doc for such modes, for what markup to use to get the 
effect of underlined text.

2. Otherwise (i.e., more generally), you use Emacs faces to change the 
appearance of buffer text, either by applying text properties (e.g. property 
`face') to characters in the buffer or by applying overlay properties (e.g. 
property `face') to buffer positions.

One attribute for a face is `underline'.

Example: you use `M-x customize-face RET font-lock-comment-face RET', then in 
the Customize buffer you (show and then) change the value of attribute 
Underline to On, then change the State of the face for the current session to 
accept your change (edit): Set for current session. That changes occurrences of 
face `font-lock-comment-face' so that text with that face is underlined.

3. In enriched-text mode, you can use `M-o u' to apply face `underline' to any 
text.

Read the manual (`C-h r'), about faces, font-locking, and faces in enriched 
text 
(https://www.gnu.org/software/emacs/manual/html_node/emacs/Enriched-Faces.html).

reply via email to

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