4.16 Option for line highlighting

Brief: Control the style of the current line of hl-line-mode.

Symbol: modus-themes-hl-line (‘choice’ type, list of properties)

The value is a list of properties, each designated by a symbol. With a nil value, or an empty list, the style is a subtle gray background color.

Possible properties are the following symbols:

The property accented changes the background to a colored variant.

An underline property draws a line below the highlighted area. Its color is similar to the background, so gray by default or an accent color when accented is also set.

An intense property amplifies the colors in use, which may be both the background and the underline.

Combinations of any of those properties are expressed as a list, like in these examples:

(intense)
(underline intense)
(accented intense underline)

The order in which the properties are set is not significant.

In user configuration files the form may look like this:

(setq modus-themes-hl-line '(underline accented))

Set x-underline-at-descent-line to a non-nil value so that the placement of the underline coincides with the lower boundary of the colored background.

This style affects several packages that enable hl-line-mode, such as ‘elfeed’, ‘notmuch’, and ‘mu4e’.

[ Also check the ‘lin’ package on GNU ELPA (by the author of the modus-themes) for a stylistic enhancement to hl-line-mode. ]