[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it a good idea to use `add-hook' and `remove-hook' in a minor mod
From: |
Stefan Monnier |
Subject: |
Re: Is it a good idea to use `add-hook' and `remove-hook' in a minor mode? |
Date: |
Mon, 26 May 2025 23:01:00 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Because hooks are akin to user options (indeed, many of them /are/
> user options), and I think Elisp code should not in general change
> user options.
Many, if not most, hooks are not designed to be changed directly from an
init file, but are instead designed for third party packages like the
minor mode you seem to be working on.
Stefan