[oni-org] Add a simple Pomodoro duration
I'm trying out the Pomodoro Technique and one of the things you're supposed to do is estimate your tasks in pomodoros. This change lets me estimate in, for example, 1p (20min) based on my specified pomodoro duration.
This commit is contained in:
parent
a62f26073d
commit
011f0ce2f9
1 changed files with 12 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2021.1201.133943
|
;; Version: 2022.0110.220554
|
||||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti mixed-pitch)
|
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti mixed-pitch)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -771,5 +771,16 @@ This is an around advice for ‘org-html--svg-image’ as FUN."
|
||||||
|
|
||||||
(advice-add 'org-html--svg-image :around #'oni-org-html-svg-image-embed)
|
(advice-add 'org-html--svg-image :around #'oni-org-html-svg-image-embed)
|
||||||
|
|
||||||
|
;;; Pomodoro
|
||||||
|
|
||||||
|
;; Add my current pomodoro time duration so that I can make estimates in
|
||||||
|
;; Pomodoros like 1p.
|
||||||
|
(defconst oni-org-pomodoro-duration 20
|
||||||
|
"The duration in minutes of a single pomodoro.")
|
||||||
|
|
||||||
|
(with-eval-after-load 'org-duration
|
||||||
|
(add-to-list 'org-duration-units `("p" . ,oni-org-pomodoro-duration))
|
||||||
|
(org-duration-set-regexps))
|
||||||
|
|
||||||
(provide 'oni-org)
|
(provide 'oni-org)
|
||||||
;;; oni-org.el ends here
|
;;; oni-org.el ends here
|
||||||
|
|
Loading…
Reference in a new issue