6078 comments
2357 subscribers
6198 on Twitter
Subscribe! Feed reader E-mail

Remembering to Org and Planner

Most of my notes are in Emacs Planner. Handy commands like M-x
remember help me quickly take notes and write down ideas, saving the
text to my blog.

While reading the manual for Org, another PIM for Emacs (yes, another
one!), I decided to give it a try. Org uses Remember, the same quick
note-taking module that Planner does. I wanted to set up Emacs so that
I could remember a note and have it go either to my Planner-based blog
or to my notes file.

M-x remember is a two-step procedure. First, Remember sets up the
buffer and inserts the annotation. After you write the note and press
C-c C-c, Remember passes the note’s contents to a handler function.
Because Planner and Org have incompatible annotation functions and
destinations, I needed to override both.

Here’s how I did that:

(defun sacha/remember-to-org ()
  (interactive)
  (let ((org-directory "~/path/to/my/orgfiles/")
        (org-default-notes-file "~/.notes")
        (remember-annotation-functions '(org-remember-annotation))
        (remember-mode-hook (cons 'org-remember-apply-template
                                  remember-mode-hook)))
    (remember)
    (set (make-variable-buffer-local 'remember-handler-functions)
         '(org-remember-handler))))
(global-unset-key [f9 ?o])
(global-set-key [f9 ?o ?r] 'sacha/remember-to-org)
(global-set-key [f9 ?r ?o] 'sacha/remember-to-org)

I’ve set up Remember to work with Planner by default:

(setq remember-handler-functions '(remember-planner-append))
(setq remember-annotation-functions planner-annotation-functions)
(global-set-key [f9 ?r ?p] 'remember)
(global-set-key [f9 ?p ?r] 'remember)
(global-set-key (kbd " r SPC") 'remember)

I’ve added plenty of keyboard shortcuts to see which ones feel the most natural.

I’m looking forward to playing around with this and seeing what works!

Random Emacs symbol: tty-color-define – Function: Specify a tty color by its NAME, terminal INDEX and RGB values.

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

On This Day...

  • 2012: Learning how to bring people together — Many people I know are looking for their next opportunity – freelancing, consulting, full-time or part-time jobs. One of my [...]
  • 2012: Sketchnotes: #torontob2b: Free trials, cold-calling, brainstorming — Click on an image for a larger version of the sketchnotes. Feel free to share these! You can credit it [...]
  • 2011: Learning browser-based testing with Selenium — I want to get better at testing my applications so that clients and end-users run into fewer bugs. I’m learning [...]
  • 2009: Finding the sweet spot — Dave Pollard shared this excellent diagram for finding the sweet spot for what you want to do in life. He [...]
  • 2009: How do you keep in touch with 500+ contacts? — “How do you keep in touch with 500+ contacts?” asked Khalid, whom I met while I was active in Toastmasters. [...]
  • 2008: Week ending Oct 5 — Accomplishments: Created saved searches/alerts module for Drupal-based project Prepared Gen Y banking scenarios for an upcoming client workshop Connected lots of dots Attended WordCampToronto, [...]
  • 2008: Sewing: Wool jumper, blazer — (blazer not pictured). This is the jumper I made following Simplicity 4097. I also made a blazer from the pattern. [...]
  • 2008: My blog should be a little bit faster now — I picked up a lot of ideas from this weekend’s WordCampToronto, and I’m looking forward to doing a front-page redesign [...]
  • 2008: — WordCamp Toronto Chat with my parents Update sewing patterns and make fabric list Clear inbox
  • 2007: Emacs multi-tty is sweet — The multiple-terminal support in Emacs 23 (CVS) means that I can leave my main Emacs session running on my laptop, connect [...]
  • 2007: Very odd – caring about the nitty-gritty — While reviewing the volunteer application form for a charity that I’m thinking of supporting, I grew uncomfortable with the confidentiality agreement. In [...]
  • 2006: Rotman School of Management: Nexus for non-profits — Ushnish Sengupta told me about Nexus, the Rotman School of Management’s initiative for providing low-cost services to non-profit organizations. Already in its second [...]
  • 2006: Clearing e-mail clutter — I’ve set almost all of my Yahoogroups mailing lists on Special Notice only to curb my inbox overload. I’ll reenable them [...]
  • 2005: Aha! That’s it! That’s my thing! Research as blogging — I’ve been struggling to figure out exactly how graduate school and my courses fit into The Great Scheme of Things, and [...]
  • 2005: Google tech talk! — 5:30 – 7:00 at BA1130. I am _so_ going to be there. <cancels everything else on her schedule>
  • 2003: Comments on http://optics.blogspot.com: — by the way sacha, however did you find out that i had linked you to my blog already? and a correction [...]

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging