unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: "emacs-devel" <emacs-devel@gnu.org>
Cc: Nicolas De Jaeghere <nicolas@dejaeghe.re>
Subject: ELPA: add lin.el
Date: Fri, 05 Nov 2021 21:29:11 +0200	[thread overview]
Message-ID: <871r3uv1tk.fsf@protesilaos.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

Hello everyone,

I have a small package called "LIN Is Noticeable" (LIN, lin, lin.el,
etc.).  It locally remaps the 'hl-line' face.

The user can enable 'lin-mode' in select major modes to have a more
intense (or just different) style for the highlighted line of
'hl-line-mode', without compromising the utility of the 'hl-line' face
in all other buffers.

Quote from the documentation:

    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.

LIN does not enable 'hl-line-mode'.  It just remaps the 'hl-line' face.

I attach the patch for elpa.git.  What do you think?  I can provide
screenshots in case you need a demonstration.

Note that I received contributions from Nicolas De Jaeghere (in Cc).
Nicolas has also assigned copyright to the FSF.

All the best,
Protesilaos (or simply "Prot")

-- 
Protesilaos Stavrou
https://protesilaos.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-elpa-packages-lin-Add-package.patch --]
[-- Type: text/x-patch, Size: 846 bytes --]

From 1060655766e33788d9a6b849935c45484722c50d Mon Sep 17 00:00:00 2001
Message-Id: <1060655766e33788d9a6b849935c45484722c50d.1636138741.git.info@protesilaos.com>
From: Protesilaos Stavrou <info@protesilaos.com>
Date: Fri, 5 Nov 2021 20:58:37 +0200
Subject: [PATCH] * elpa-packages (lin): Add package

---
 elpa-packages | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elpa-packages b/elpa-packages
index e26a428c25..42d72d6874 100644
--- a/elpa-packages
+++ b/elpa-packages
@@ -295,6 +295,7 @@
  ("leaf"		:url "https://github.com/conao3/leaf.el")
  ("let-alist"		:core "lisp/emacs-lisp/let-alist.el")
  ("lex"			:url nil)
+ ("lin" :url "https://gitlab.com/protesilaos/lin" :main-file "lin.el" :doc "README.org")
  ("lmc"			:url nil)
  ("load-dir"		:url nil)
  ("load-relative"	:url "https://github.com/rocky/emacs-load-relative")
-- 
2.33.1


             reply	other threads:[~2021-11-05 19:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-05 19:29 Protesilaos Stavrou [this message]
2021-11-05 20:28 ` ELPA: add lin.el Stefan Kangas
2021-11-06  4:55   ` Protesilaos Stavrou
2021-11-06  6:12     ` Stefan Kangas
2021-11-09 19:46 ` Protesilaos Stavrou
2021-11-09 20:15   ` Stefan Monnier
2021-11-09 20:38     ` Protesilaos Stavrou
2021-11-10 14:14     ` Semantic hl-line-mode (was: ELPA: add lin.el) Protesilaos Stavrou
2021-11-10 14:33       ` Eli Zaretskii
2021-11-10 14:53         ` Stefan Kangas
2021-11-10 16:53           ` Protesilaos Stavrou
2021-11-13 15:06             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871r3uv1tk.fsf@protesilaos.com \
    --to=info@protesilaos.com \
    --cc=emacs-devel@gnu.org \
    --cc=nicolas@dejaeghe.re \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).