reddit / emacs

Newbie. Do you have a few special clock-in and clock-out subjects that you have quick access to anywere? How do you set it up to quickly do that, or perhaps present a list of options to clock-in/clock-out?

Status-Detective-783 · 2022-03-21 20:52
Org-mode, of course. I'm thinking of maybe a key binding that would present a list of things, like 1. Reviewing Agenda (Daily and Nightly planning.) 2. Administrative Tasks (reviewing emails, etc.) 3. Emacs/Org Mode Problem Solving 4. General Research 5. Other Misc It might even have some special "current" projects added to the list. Maybe there's a feature or package that already does something similar? Or a standard-ish org mode method/recipie to accomplish the same?
jalihal · 2022-03-21 21:27
Interesting idea. I rarely lose my emacs session, so `C-u C-c C-j` lets me select "recently clocked tasks". This is sufficient for my needs, because I work in a datetree with a new entry even for repeated tasks every day. But a keyboard shortcut to clock in to a fully filled out template does sound appealing.
lilytex · 2022-03-21 22:38
One well-known guide is this one: http://doc.norang.ca/org-mode.html#Clocking It gives you the notion of punch-in and punch-out (starting to count time and stopping alltogether). When you clock out of a task, if it has a parent task with an active todo keyword, it clocks in that parent, and if there is none, it clocks in a generic "organization" task that you cand define by id. There's also functions for capturing a new unexpected task and clocking in your last X clokes tasks. This setup makes perfect sense if you're a freelancer and you're billing by hour, the next section actually describes this setup as well.
Status-Detective-783 · 2022-03-22 01:43
> datetree Interesting, I looked this up. It makes sense, of course. Is that a pretty standard way to organize task and note entry, using a datetree? I'm winging it (currently everything is just going under "* Tasks" in inbox.org, I don't even have any custom capture templates made yet) and haven't looked at refining my workflow yet. I wonder how many people use this system vs... I don't know what other system workflow there might be!
No-Command-791 · 2022-03-22 01:58
[org-mru-clock](https://github.com/unhammer/org-mru-clock) collects all headlines with prior clock history and lets you clock into them with completion. Persistent history and minimal context switching, hooray. It can also create and immediately clock into new items ad hoc. Saves a lot of time.
Status-Detective-783 · 2022-03-22 02:28
Thanks!
EFLS_ · 2022-03-25 10:35
I use this: (defun efls/quick-clock-in (&optional arg) (interactive "P") (let ((org-refile-use-outline-path 'buffer-name) (org-outline-path-complete-in-steps nil)) (org-refile '(4)) (org-clock-in arg))) It uses the `org-refile` interface, allows me to quickly select a heading from my agenda files using completing-read, and starts a clock there.
Status-Detective-783 · 2022-03-25 12:59
Nice, thanks!