> 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).