I am working on a minor-mode and I'd like it to be active only for major modes derived from prog-mode.
So far I know that the macro define-minor-mode
takes a argument :global
to decide whether or not the mode should be global. But this is too general.
And I'd like not requiring the user to set-up the mode itself with a hook à la:
(add-hook 'prog-mode-hook (lambda () (my-minor-mode t)))
Thanks