C-C C-x ; can start count down timer. But I want to start the timer whenever I open any org file. I want to set it default for 10 minute. Kindly help


Have you tried adding the function to org-mode-hook?

If you haven't tried it yet, what I would recommend is to create a function my-org-mode-hook-function which evaluates (org-timer-set-timer 10). Then add to your .emacs file the expression (add-hook 'org-mode-hook 'my-org-mode-hook-function).

| improve this answer | |
  • How do you create a hook.? Kindly explain – Vaibhav Jan 16 '18 at 9:41
  • You don't create any hook. org-mode-hook is a pre-existing emacs variable, meant to contain a list of functions to be evaluated when starting org-mode. – user1404316 Jan 16 '18 at 10:16
  • Can you teach me how you create a function my-org-mode-hook-function which evaluates (org-timer-set-timer 10. Kinldy oblige – Vaibhav Jan 16 '18 at 10:56
  • 1
    (defun my-org-mode-hook-function () (org-timer-set-timer 10)) – user1404316 Jan 16 '18 at 11:05
  • gets error. End of file during parsing – Vaibhav Jan 16 '18 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.