help-gnu-emacs
[Top][All Lists]
Advanced

[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: Mon, 26 Jun 2023 19:28:59 +0000

> What does the following do ?
> 
> (add-hook 'outline-minor-mode-hook 'tika-minor-mode nil t)
> 
> Does it enable tika-minor-mode when outline-minor-mode gets activated

It enables minor mode `tika-minor-mode' when minor mode `outline-minor-mode' is 
enabled AND when `outline-minor-mode' is disabled.

See `C-h f define-minor-mode':

 When called from Lisp, the mode command toggles the mode if the
 argument is `toggle', disables the mode if the argument is a
 non-positive integer, and enables the mode otherwise (including
 if the argument is omitted or nil or a positive integer).

<<attachment: winmail.dat>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]