I'm using org-mode's clocking functions to track the hours I spend on projects. Since my main org file is rather large and I scroll through it a lot, it would be great to have a visual cue of the task that's currently clocked in.

Ideally some marker (e.g. a red arrow) in the fringe would be nice, especially if it 'moves' to the parent header if the subheaders are collapsed. Alternatively a highlighted line would be an options (somewhat similar to hl-line-mode, but fixed to the current task (or its parent)). Unfortunately my (e)lisp skills are almost non existent, so I don't have much of a clue where to start. Going through the Emacs manual it looks like overlay-arrow-string and overlay-arrow-position are the variables I could use, and org-clock-in-hook and org-clock-out-hook from org-clock.el look like places where I could (un)set these variables.

I know you can easily jump to the current task with C-c C-x C-j, but a visual cue would be much appreciated.

  • It should appear in modeline. – Muihlinn Mar 7 at 20:58

Your Answer

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

Browse other questions tagged or ask your own question.