Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journal entry #47

Open
dagomar opened this issue Oct 27, 2020 · 1 comment
Open

Journal entry #47

dagomar opened this issue Oct 27, 2020 · 1 comment

Comments

@dagomar
Copy link

dagomar commented Oct 27, 2020

Hi,

disclaimer: super new to emacs.

I was wondering if it's possible to have an automated journal entry after a timer has finished? What I'd like to achieve is that after a pomodoro has finished I jot down what I have done during the pomodoro. Now I can manually do this, but what I'd like is that a window automatically opens with a log entry ready to type when the pomodoro has finished.

Is this something that can be achieved? Anyone has a pointer? Thanks!

@TatriX
Copy link
Owner

TatriX commented Oct 27, 2020

Hi!
I'm not entirely sure what specifically you want your workflow to be, but let's say you want to run some action when you press SPC to start "break" period.

(defun my-pomidor-log ()
    ;; Check that there is actually a break, rather then break new timer start
    (when (pomidor-break-duration)
      ;; Here you want to run some code to actually open journal window
      (message "Open journal here")))
;; Run `my-pomidor-log` after one presses `SPC`
(advice-add #'pomidor-break :after #'my-pomidor-log)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants