unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ELPA: add lin.el
@ 2021-11-05 19:29 Protesilaos Stavrou
  2021-11-05 20:28 ` Stefan Kangas
  2021-11-09 19:46 ` Protesilaos Stavrou
  0 siblings, 2 replies; 12+ messages in thread
From: Protesilaos Stavrou @ 2021-11-05 19:29 UTC (permalink / raw)
  To: emacs-devel; +Cc: Nicolas De Jaeghere

[-- 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


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-11-13 15:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 19:29 ELPA: add lin.el Protesilaos Stavrou
2021-11-05 20:28 ` 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

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).