doomemacs / doomemacs/core

Add lin.el for dynamic hl-line in different contexts

Open
#5,726 0 comments 0 reactions 0 assignees View on GitHub
is:feature needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### Describe your request

The great Protesilaos Stavrou has [recently introduced](https://protesilaos.com/codelog/2021-11-01-introducing-lin/) lin.el (*LIN Is Noticeable*) which "[...] remaps `hl-line` face buffer-locally to a style that is optimal for major modes where line selection is the primary mode of interaction."

This is especially useful for all sorts of selection/search buffers (ivy/vertico/helm/ido) that current suffer from bad `hl-line` colors.

Prot intends to submit `lin.el` to GNU ELPA "[...] sometime before the 10th of November".

### Briefly explain its use-case

A quote from [the manual](https://protesilaos.com/emacs/lin):

> The idea is that hl-line cannot work equally well for contexts with competing priorities: (i) line selection, or (ii) simple line highlight. In the former case, the current line needs to be made prominent because it carries a specific meaning of some significance in the given context. Whereas in the latter case, the primary mode of interaction does not revolve around the line highlight itself: it may be because the focus is on editing text or reading through the buffer’s contents, so the current line highlight is more of a gentle reminder of the point’s location on the vertical axis.

There is a pretty good example in the introduction blog post linked above that *highlights* the use-case:

![](https://protesilaos.com/assets/images/attachments/2021-11-01-lin-modus-operandi-demo.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.