I wrote a function to enable some minor modes when another minor mode is enabled:
(defun prose-mode() (display-line-numbers-mode) (variable-pitch-mode))
prose-mode as a hook for
(add-hook 'olivetti-mode-hook 'prose-mode)
The hook is working fine and
prose-mode gets ivoked on
However, when I do that again to disable the mode, the line numbers don't reappear.
variable-pitch-mode is toggling and I get my monospaced font back.
In general, is this the right way to do what I'm trying to do?
prose-mode, should I check for the current minor mode using a conditional statement to enable/disable the other modes?