unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [NonGNU ELPA] New package: eldoc-diffstat
@ 2024-12-09 20:31 Johann Klähn
  2024-12-13 20:23 ` Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Johann Klähn @ 2024-12-09 20:31 UTC (permalink / raw)
  To: emacs-devel; +Cc: Philip Kaludercic, Tassilo Horn

I would like to submit a new package to NonGNU ELPA: eldoc-diffstat.

  https://github.com/kljohann/eldoc-diffstat/

It provides a way to display VCS diffstat information via eldoc.  I.e.,
if point rests on a commit in a magit, vc-annotate, or log-view buffer,
the Git or Mercurial diffstat summary will be shown in the echo area.
For example (though it uses ansi-colors and fontification, so you might
prefer to look at the screenshot in the repo):

  Johann Klähn <xyz@localhost>, Thu, 3 Oct 2024 15:45:10 +0200: Minor refactoring
   1 file changed, 93 insertions(+), 62 deletions(-)
   eldoc-diffstat.el | 155 ++++++++++++++++++++++++++++++++----------------------

It's adapted from Tassilo Horn's 2022 blog post “Using Eldoc with Magit
(asynchronously!)”: https://www.tsdh.org/posts/2022-07-20-using-eldoc-with-magit-async.html

Thanks
Johann



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

* Re: [NonGNU ELPA] New package: eldoc-diffstat
  2024-12-09 20:31 [NonGNU ELPA] New package: eldoc-diffstat Johann Klähn
@ 2024-12-13 20:23 ` Tassilo Horn
  0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2024-12-13 20:23 UTC (permalink / raw)
  To: Johann Klähn; +Cc: emacs-devel, Philip Kaludercic

Johann Klähn <johann@jklaehn.de> writes:

Hi Johann,

> I would like to submit a new package to NonGNU ELPA: eldoc-diffstat.
>
>   https://github.com/kljohann/eldoc-diffstat/

I'm using it since a couple of days using package-vc and like it very
much, so I took the liberty to add it to NonGNU ELPA.

I think you could add a bit more configuration hints to the README.md,
e.g., where you say that one should call eldoc-diffstat-setup in the
desired buffer or mode hook, provide some typical examples like:

  (add-hook 'log-view-mode-hook #'eldoc-diffstat-setup)
  (add-hook 'vc-annotate-mode-hook #'eldoc-diffstat-setup)
  (add-hook 'magit-status-mode-hook #'eldoc-diffstat-setup)
  (add-hook 'magit-log-mode-hook #'eldoc-diffstat-setup)

Thanks for the package!
  Tassilo



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

end of thread, other threads:[~2024-12-13 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-09 20:31 [NonGNU ELPA] New package: eldoc-diffstat Johann Klähn
2024-12-13 20:23 ` Tassilo Horn

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