Emacs: lin version 0.3.0
Lin is a stylistic enhancement for Emacs’ built-in
hl-line face (or equivalent) buffer-locally to a style that
is optimal for major modes where line selection is the primary mode of
interaction. Its manual explains the technicalities:
Here is an illustration of Lin in the lower window as compared to the
default subtle style of
hl-line-mode in the upper window (using the
modus-operandi theme from my
Below are the release notes.
Version 0.3.0 on 2022-04-08
Changed the source repository from GitLab to SourceHut: https://git.sr.ht/~protesilaos/lin. Use the mailing list to start a discussion, report a bug, send a patch, etc.: https://lists.sr.ht/~protesilaos/lin. The GitLab URL will serve as a mirror from now on (a GitHub mirror is still available and will remain that way).
Introduced a buffer-local minor mode as well as its global equivalent:
lin-global-mode. This makes it easier to set up Lin in user init files and/or toggle it on demand. The following shows how the package can be used:
(require 'lin) (setq lin-face 'lin-blue) ; check doc string for alternative styles ;; You can use this to live update the face: ;; ;; (customize-set-variable 'lin-face 'lin-green) (setq lin-mode-hooks '(bongo-mode-hook dired-mode-hook elfeed-search-mode-hook git-rebase-mode-hook ibuffer-mode-hook ilist-mode-hook ledger-report-mode-hook log-view-mode-hook magit-log-mode-hook mu4e-headers-mode notmuch-search-mode-hook notmuch-tree-mode-hook occur-mode-hook org-agenda-mode-hook tabulated-list-mode-hook)) (lin-global-mode 1)
lin-facenow has a custom setter which automatically updates its appearance in all buffers where
lin-modeis enabled. Users might thus prefer to set its value with
customize-set-variablein order to find the style they like the most. Otherwise setting the value with
setqis just fine for stable configurations. If, in that case, the user wants to update the face, they must invoke
revert-bufferor equivalent (e.g. type
gin Dired with the default key bindings) or evaluate the function
The user option
bongopackage). Its default value is shown in the sample code above.