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: uzibalqa
Subject: RE: [External] : Hook on other minor modes
Date: Mon, 26 Jun 2023 19:42:41 +0000

------- Original Message -------
On Tuesday, June 27th, 2023 at 7:28 AM, Drew Adams <drew.adams@oracle.com> 
wrote:


> > 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':

It does not seem of much good use then to do such a thing.
 
> 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).



reply via email to

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