[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Little improvements on pulse.el
From: |
Juri Linkov |
Subject: |
Re: Little improvements on pulse.el |
Date: |
Wed, 10 Mar 2021 20:51:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> Besides the implementation details, how about packing this up in a
>> global minor mode, like `pulse-change-window-mode' or something?
>> I could see myself using something like that.
>
> Maybe simply something like:
>
> (defun pulse-line (&rest _)
> (pulse-momentary-highlight-one-line (point)))
>
> (add-hook 'window-state-change-functions #'pulse-line)
BTW, currently 'pulse-momentary-highlight-one-line'
has no visible indication on an empty line, so it's face
should be fixed to have the face attribute :extend t.