[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug-reference auto-configuration

From: Tassilo Horn
Subject: Re: Bug-reference auto-configuration
Date: Thu, 18 Jun 2020 21:26:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Ted Zlatanov <tzz@lifelogs.com> writes:

Hi Ted,

> TH> I'd welcome some more testing.  You just have to enable
> TH> `bug-reference-mode' or `bug-reference-prog-mode' and cross
> TH> fingers, e.g.,
> TH>   ;; Enable in prog mode buffers.
> TH>   (add-hook 'prog-mode-hook #'bug-reference-prog-mode)
> TH> and (for Gnus users)
> TH>   ;; Enable in Gnus summary and article buffers.
> TH>   (add-hook 'gnus-summary-mode-hook #'bug-reference-mode)
> TH>   (add-hook 'gnus-article-mode-hook #'bug-reference-mode)
> It looks good in my testing. Would this be the right use-package
> invocation and hooks?
>   (use-package bug-reference
>     :hook
>     (prog-mode . bug-reference-prog-mode)
>     (gnus-mode . bug-reference-mode)
>     (text-mode . bug-reference-mode))

Oh, I didn't know use-package's :hook functionality.  But anyway, that's
exactly what I do, too.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]