6092 comments
2357 subscribers
6240 on Twitter
Subscribe! Feed reader E-mail

sacha/planner-create-note-from-task

;; Improvements:
;; - Link back to the task?
;; - Make it possible to have your note on another page?
(defun sacha/planner-create-note-from-task ()
  "Create a note based on the current task."
  (interactive)
  (let* ((task-info (planner-current-task-info))
         note-num)
    (when task-info
      (setq note-num (planner-create-note (planner-page-name)))
      (save-excursion
        (save-window-excursion
          (when (planner-find-task task-info)
            (planner-edit-task-description
             (concat (planner-task-description task-info) " "
                     (planner-make-link
                      (concat (planner-page-name) "#"
                              (number-to-string note-num))
                      "..."))))))
      (insert (planner-task-description task-info) "\n\n"))))

;; I use F9 p to go to today's page, anyway.
(define-key planner-mode-map (kbd "C-c C-n") 'sacha/planner-create-note-from-task)

../emacs/planner-config.el

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

On This Day...

  • 2012: Sketchnotes: Girl Geeks Toronto: Vexed in the City — Click on the image for a larger version! Please feel free to share this under the Creative Commons Attribution Licence. This [...]
  • 2012: When your personal value proposition shifts — It’s odd to notice the shifts in the value I create for people. For example, tonight, Girl Geeks Toronto is [...]
  • 2011: Weekly review: Week ending November 18, 2011 — Good week! Lots of progress on coding and testing work projects as well as Quantified Awesome. Getting there… From last [...]
  • 2010: Conversations: Stian Håklev — Stian Håklev is passionate about education – and in particular, the richness of different cultures and perspectives. Here are some [...]
  • 2009: The luxury of making — My standard for decadence used to be the microfiber robe I once had the pleasure of trying in a [...]
  • 2008: TCP window scaling, or zomg the Internet works for me again — Sites such as aircanada.com, pcfinancial.ca, and (horror of horrors!) torontopubliclibrary.ca had gotten _unbearably_ slow on Linux. Here’s how I fixed it [...]
  • 2006: Nov 13 to Nov 19 — This week, I concentrated on schoolwork and got quite a lot of things done. Mark and I submitted my CAS project [...]
  • 2006: Hooray Internet collaboration! — I hadn’t heard anything from my KMD2004 groupmates all weekend, so I was rather worried about the integrative summary that we [...]
  • 2006: Mmm, chocolate — I’m munching on a special chocolate mix from Choco Sol. The slab of sun-dried, bicycle-powered and volcanic-stone-ground chocolate contains cacao, agave, amaranth, [...]
  • 2005: Pride and Prejudice — My suitemates and I watched Pride and Prejudice last night. The tension was absolutely wonderful. Then again, it’s a Jane Austen novel. [...]
  • 2003: CookOrDie: Day 7: Reheated rice, sausage slices — Leftover rice plus Hungarian sausages. Okay, but not as fun as bread or potatoes. Tomorrow, will check out meat shop. Yang chow [...]
  • 2003: Words of wisdom — From William Yu: Communication effects. You can influence a person by taking time to talk with them. (from Fanny’s blog)
  • 2003: CS21A: Smiley — I drew a smiley on the board and provided the skeleton for a new class that drew only the circle that [...]
  • 2003: CS161 — Having breezed through the first slide set in one class day while the other teachers are just halfway through, I wanted [...]
  • 2003: Kathy has an article! — http://www.theglide.com/editorial/editorial.php?section=contests&article=siargao_cup_2003
  • 2003: My faculty load — sum cs21a 4 1st cs21a 4 1st cs123 4 1st cs231 2 2nd cs21a 4 2nd cs21b 3 2nd cs21b 3 2nd cs161 4 2nd cs161 4 2nd cs197 1

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!