• Re: Help with hooks

    From tpeplt@tpeplt@gmail.com to gnu.emacs.help on Mon Sep 4 13:58:48 2023
    From Newsgroup: gnu.emacs.help

    Maske <maske1foro@gmail.com> writes:


    I am having constantly troubles with hooks (basically, I don't know
    how them work).

    For example, this has no effect, is it possible to know why?

    (add-hook 'org-pomodoro-started-hook 'toggle-tool-bar-mode-from-frame) (add-hook 'org-pomodoro-started-hook 'toggle-menu-bar-mode-from-frame) (add-hook 'org-pomodoro-started-hook 'toggle-tab-bar-mode-from-frame)


    Some information that might help in diagnosing your problem:

    1. Type C-h v org-pomodoro-started-hook

    and then paste that description (from the *Help* buffer) into a
    message to this group.

    2. Type C-h f toggle-tool-bar-mode-from-frame

    and then paste that description into the same message.

    It is possible, for example, that the Emacs Lisp code that reads the rCyorg-pomodoro-started-hookrCO variable is not running, for some reason.

    Also, if possible, provide whatever other code or documentation about
    the package that you are using that specified setting the rCyorg-pomodoro-started-hookrCO variable.

    --
    --- Synchronet 3.21d-Linux NewsLink 1.2