I have foo-mode and would enable bar-minor-mode for it. So which way is more common and preferable?
A
(add-hook 'foo-mode-hook 'bar-minor-mode)
B
(add-hook 'foo-mode-hook (lambda ()
"Turn on `bar-minor-mode' mode."
(bar-minor-mode 1)))
C
(defun bar-minor-mode-on ()
"Turn on `bar-minor-mode' mode."
(interactive)
(bar-minor-mode 1))
(add-hook 'foo-mode-hook 'bar-minor-mode-on)
D
• variant C, but function pushed to upstream
E
• variant C, but function stored in plugin's recipe