6091 comments
2357 subscribers
6239 on Twitter
Subscribe! Feed reader E-mail

planner tweak: What am I supposed to be doing?

This snippet helps me keep track of what I’m supposed to be doing.
I’ve bound it to F9 F9. Calling it with C-u brings me to the planner
page so that I can complete the current task or look at the context.
F9 F9 from that page will restore my window configuration.

(defvar sacha/window-register "w"
  "Register for jumping back and forth between planner and wherever I am.")
(defvar sacha/planner-current-task nil
  "Current task info.")
(defadvice planner-task-in-progress (after sacha activate)
  "Keep track of the task info."
  (setq sacha/planner-current-task (planner-current-task-info)))

(defun sacha/planner-what-am-i-doing (&optional prefix)
  "Make it easy to keep track of what I'm supposed to be working on.
If PREFIX is non-nil, jump to the current task, else display it
in a message. If called from the plan page, jump back to whatever
I was looking at."
  (interactive "P")
  (if planner-timeclock-current-task
      (if (string= (planner-task-page sacha/planner-current-task)
                   (planner-page-name))
          (jump-to-register sacha/window-register)
        (if (null prefix)
            (message planner-timeclock-current-task)
          (frame-configuration-to-register sacha/window-register)
          (planner-find-file (planner-task-page sacha/planner-current-task))
          (planner-find-task sacha/planner-current-task)))
    (if prefix
        (planner-goto-today)
      (message "No current task. HEY!"))))

../emacs/planner-config.el

Short URL: http://sachachua.com/blog/p/2493

On This Day...

  • 2012: One to three, that’s all — One to three good pieces of work each day. That’s all I want to check off my list, and anything [...]
  • 2011: Growing as a developer: Automated tests — For this project, I put a lot of time into writing tests. Now they’re paying off. User acceptance testing [...]
  • 2010: Android life so far — It’s been three weeks since I bought my Android phone, and I’m having lots of fun hacking it. Here’s what [...]
  • 2009: How I find and learn from mentors — Would you be willing to describe in more detail how those relationships came to be, and how you’ve gone about [...]
  • 2008: Cintiq 12WX, OpenSuse 11.0, and much pain and suffering — Let that be a lesson to me: Always blog solutions to problems. The cost of doing so is not just [...]
  • 2007: Tips for conference bloggers — Conference reports are a great way to help share knowledge and justify the expense of conference travel, but attendees are often [...]
  • 2006: Stuffing envelopes, writing cards… — <stretch> Halfway through my US/Canada 2006 letters. I’m limiting myself to 100 letters for now, although I *might* send more from the [...]
  • 2006: Learning from the best — I grew up with books and audiotapes of Tom Peters, Zig Ziglar, and Tom Hopkins. I can *still* hear Tom Hopkins [...]
  • 2006: Enthusiastic rapport with Emmanuel and Rob: movies that motivate — What a day, what a day! I went back to Second Cup for coffee with Emmanuel Lopez and Rob Schaumer at [...]
  • 2006: Kudos to Kevin Magee: sales and networking tips — I had a terrific conversation with Kevin Magee over coffee and chocolate chillers at Second Cup this morning. I met him very [...]
  • 2005: Missing — Finals were great. =) Now to figure out where the missing pieces are… I remember going back to my room this [...]
  • 2004: PLUG Christmas Party — I would like to invite you to attend and celebrate with us in our upcoming Christmas party and General Assembly this [...]
  • 2004: Kanji sentence — 今年度はデジタル家電の需要の低迷などから1けたの伸びに減速する。 ことしどはデジタルかでんのじゅようのていめいなどからひとけたののびにげんそくする。 減速する。| [It] will slow down. 伸びに減速する。| Growth will slow down. 1けたの伸びに減速する。| Growth will slow down to a 1-digit figure. 低迷などから1けたの伸びに減速する。| Because of sluggishness, [...]
  • 2003: chess.el — Another John Wiegley creation! Mumble mumble… ;)
  • 2003: Natural language processing — http://slashdot.org/article.pl?sid=03/12/11/2358209&mode=thread&tid=106&tid=126&tid=156&tid=185 From Slashdot: Zhang Le, a Chinese scientist working on Natural Language Processing has decided to pack the most important language analysis and [...]

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!