[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: minor-mode hook not run
From: |
Emanuel Berg |
Subject: |
Re: minor-mode hook not run |
Date: |
Tue, 20 Mar 2018 22:17:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Stefan Monnier wrote:
> Adding elements to one's own hook here
> definitely deserve a "bug ugly hack" comment
> explaining why you'd want to do it that way.
>
> In any case, the minor mode `foo` will run
> `foo-hook` but not `foo-mode-hook` (which
> would be run by the `foo-mode` minor mode).
Callings things foo isn't encouraged BTW.
It finds its way into "production code" soon
enough. If it is just a joke intended for
personal computer exploration, instead make
something up: make it replace the char at point
by the next char in the English alphabet, and
call it "abc-mode", or whatever, just not foo,
bar, foobar, main, or anything like that.
--
underground experts united
http://user.it.uu.se/~embe8573
- minor-mode hook not run, Andreas Röhler, 2018/03/20
- Message not available
- Re: minor-mode hook not run,
Emanuel Berg <=