[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Hook on other minor modes
From: |
Drew Adams |
Subject: |
RE: [External] : Hook on other minor modes |
Date: |
Tue, 27 Jun 2023 19:44:44 +0000 |
> For things like
>
> (add-hook 'fortran-mode-hook #'tika-minor-mode)
>
> where I want to enable tika-minor-mode when fortran mode is enabled.
> Would you
> suggest using a function that checks whether fortran-mode is activated ?
Fortran mode is a major mode, so no.
Its hook is run only when the mode is enabled.
Ask Emacs:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Mode-Hooks.html