trying to fix
This commit is contained in:
parent
fa407dfeb6
commit
e013d7569e
22945 changed files with 447936 additions and 0 deletions
|
@ -0,0 +1,51 @@
|
|||
|
||||
|
||||
<p>I published a new package which I intend to submit to GNU ELPA sometime
|
||||
before the 10th of November (together with <code>mct.el</code>—see my <a href="https://protesilaos.com/emacs/">Emacs
|
||||
packages</a>).</p>
|
||||
|
||||
<p><em>LIN Is Noticeable</em> (aka LIN, lin, <code>lin.el</code>, etc.) remaps <code>hl-line</code> face
|
||||
buffer-locally to a style that is optimal for major modes where line
|
||||
selection is the primary mode of interaction.</p>
|
||||
|
||||
<p>Quote from <a href="https://protesilaos.com/emacs/lin">the manual</a> on the
|
||||
rationale for this package:</p>
|
||||
|
||||
<blockquote>
|
||||
<p>The idea is that <code>hl-line</code> 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.</p>
|
||||
</blockquote>
|
||||
|
||||
<p>LIN provides the end-user with the flexibility of optimising for the
|
||||
specifics of each type of interaction. The user must set up the major
|
||||
modes where that is to take effect.</p>
|
||||
|
||||
<p>By means of illustration, the default style of the <code>hl-line</code> face in <a href="https://protesilaos.com/emacs/modus-themes">my
|
||||
Modus themes</a> (built into
|
||||
Emacs 28 or higher) is a subtle gray background. While there is the
|
||||
<code>modus-themes-hl-line</code> option to make it more intense, add an accented
|
||||
background, and the like, the fact remains that you still cannot apply a
|
||||
case-by-case approach for different types of line highlighting.</p>
|
||||
|
||||
<p>Whereas with LIN, we can keep one style for regular text editing and use
|
||||
<code>lin-mode</code> in contexts where <code>hl-line-mode</code> is meant to be all about
|
||||
line selection, such as in Elfeed and Notmuch buffers.</p>
|
||||
|
||||
<p>Here is a sample with the <code>modus-operandi</code> theme, with the top buffer
|
||||
showing the regular <code>hl-line</code> face and the bottom buffer displaying a
|
||||
Notmuch listing with <code>lin-mode</code> enabled (click to enlarge):</p>
|
||||
|
||||
<p><a href="https://protesilaos.com/assets/images/attachments/2021-11-01-lin-modus-operandi-demo.png"><img alt="Modus Operandi with LIN active" src="https://protesilaos.com/assets/images/attachments/2021-11-01-lin-modus-operandi-demo.png" /></a></p>
|
||||
|
||||
<p>LIN’s source code is available on Gitlab:
|
||||
<a href="https://gitlab.com/protesilaos/lin">https://gitlab.com/protesilaos/lin</a>. There also exists a Github
|
||||
mirror: <a href="https://github.com/protesilaos/lin">https://github.com/protesilaos/lin</a>.</p>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue