bug#81643: 32.0.50; use-package :hook is not the same as :init add-hook

Björn A. Lindqvist <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <CALG+76esp_HLZfGu4fkUyZd6jQbRGFkLE8WPrsfXFFtCJmb5MQ@mail.gmail.com>
Den ons 19 aug. 2026 kl 14:19 skrev Eli Zaretskii <[email protected]>:
> So in the above example, company-mode is NOT a "hook function", it's a
> function that we want to be called whenever prog-mode-hook hook is
> run.  And the fact that a command to turn ON Company mode is called
> "company-mode" is trivial to know: that's our naming convention for
> functions that turn ON a mode.
>
> Or what am I missing?

You are not missing anything. The examples are correct but (to me)
confusing due to the many symbols with the string "-mode" in their
name and because I don't know what an "autoload" is. If you know about
the naming convention for mode-enabling functions it makes more sense.


-- 
mvh/best regards Björn Lindqvist
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.