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

Task management with Emacs: Text files

With the wealth of code available for Emacs and the ease of
customization it provides, you’re certain to find a task management
tool that fits the way you think. Over the next few days, I’ll provide
a quick run-through of the methods I’ve tried out.

The simplest way to get started with Emacs for task management is to
keep your TODOs in a plain text file, like ~/TODO. You can keep this
text file in any format you want. To make it easier for you to see
what you need to do, you can keep active TODOs near the top and
completed tasks near the bottom.

If you load your TODO file every time you start up Emacs, then you’ll
be sure to check it every day. Put the following line in your ~/.emacs
to have it automatically loaded when you start:

(find-file "~/TODO")

You’ll also want to make it easy to open during an Emacs session. If
your TODO file is just a keyboard shortcut away, you’ll find it easier
to keep all of your reminders in the file. Here’s a snippet that shows
the TODO file in the current window.

(defun my/todo ()
 "Bring up the TODO file."
 (interactive)
 (find-file "~/TODO")
 (goto-char (point-min)))

;; Now bind it to a convenient shortcut key
(global-set-key (kbd " ") 'my/todo)

Now you can hit F5 F5 to show your TODO. If you want your TODO file to
show up in another window, remove that and use this snippet instead:

(defun my/todo ()
 "Bring up the TODO file."
 (interactive)
 (find-file-other-window "~/TODO")
 (goto-char (point-min)))

;; Now bind it to a convenient shortcut key
(global-set-key (kbd " ") 'my/todo)

If you want to be able to add stuff to your TODO without getting
distracted from your work, add this to your ~/.emacs:

(defun my/add-todo (task)
 "Add a line to the TODO file."
 (interactive "MTask: ")
 (with-current-buffer (find-file-noselect "~/TODO")
   (goto-char (point-min))
   (insert task "\n")
   (save-buffer)))
(global-set-key (kbd " t") 'my/add-todo)

See? Emacs is fun and easy to configure. You can store your tasks in a
plain text file and then add keyboard shortcuts to make your tasks
easier to manage.

There are many sophisticated task management packages for Emacs. I’ll
write about one of them tomorrow. In the meantime, if you want to find
out what task manager I _really_ like using, you can check out
PlannerMode! =)

何社製のコンピューターをお使いですか。 What make of computer do you use?

On Technorati: ,

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

On This Day...

  • 2013: Emacs, drawing, and blogging: Week ending May 17, 2013 — I spent four hours on Friday drawing this beginners’ one-page guide to Emacs, and people really liked it. =) It’ll [...]
  • 2012: Taking stock of the way I take notes — One of my friends was surprised that I use both Evernote and Microsoft OneNote. Many people are fervently in love [...]
  • 2011: Ordered a Kindle with free 3G — After much consideration (and you know how I analyze my decisions), I ordered the 6″ Kindle with free 3G and [...]
  • 2010: Custom fields in Lotus Notes / Domino? You may need to set the SUMMARY field flag — It took me a few hours to figure out that I needed the SUMMARY field flag, so I thought I’d [...]
  • 2008: But how do you know what to draw? — But how do you know what to draw? You don’t know until you start drawing.
  • 2008: Weekly review: Week ending May 18 — Wow. What a week. Every week helps me understand a little more about life and what I love to do, [...]
  • 2007: Technical interview — I’m going for a technical interview with IBM Global Business Services later. I’ve written up a technical resume, and I’m relieved [...]
  • 2007: Events in the Philippines? — I’m going to be in the Philippines for two weeks starting Monday, and I’d love to find out what events or [...]
  • 2006: Video sharing — Now I need to figure out how to get all this data off my system. I should share my videos [...]
  • 2006: Finding geeks — I don’t know why people complain about not being able to find talent. ;) I run across so many interesting people [...]
  • 2006: Bestest research lab evar — My research supervisor and my labmates are totally awesome. They listened to me freak out about impending doom and told me [...]
  • 2006: I am so dead — My mind’s just blanking out. There’s no way I’m going to finish a credible draft of this paper within the next [...]
  • 2006: Must not panic — I have a few hours to read tons of papers on innovation diffusion, social network analysis, and other fun stuff. Ack. [...]
  • 2006: Working at the lab versus working at home — It’s drizzling and gray outside, which makes staying here and working on my paper more attractive than trekking over to the [...]
  • 2006: Research paper cramming — My research supervisor has just strongly hinted that it would be a good idea to get some kind of draft in [...]
  • 2006: Why I don’t have to make my website pretty — Feedburner statistics show that out of 225 blog readers in the past 24 hours, only 12 of them actually visit [...]
  • 2006: Woohoo! Free Skype to US and Canada! — As part of a research study for Bell Canada, I get free VOIP calls to US and Canada. However, that [...]
  • 2006: Web alerts, pubsub, and other cool tools — One of the coolest things about blogs is that they can get indexed almost immediately after they’re posted. Services such as [...]
  • 2006: Traditional clothes — I like wearing outfits inspired by traditional Filipino costumes. I love wearing my malongs, for example. I want more Filipina flair! =) On [...]
  • 2006: Awww… — =) I’ll hack my T-shirts but not my hair or skin – no bleaching or dyeing or tattooing or whatever. ]] Random Japanese [...]
  • 2006: Barcamp explained — Joey de Villa has an excellent blog post explaining BarCamp. Check it out. On Technorati: barcamp Random Japanese sentence: 私は犬の方が猫より好きです。なぜなら、前者の方が後者より忠実ですから。 I like dogs [...]
  • 2006: Thunderstorm — Squishing through the thunderstorm in my soaked red sneakers, hearing droplets drum the samba on my umbrella, feeling the humid air [...]
  • 2006: Moleskine — I gave away a Moleskine today to Gabriel Mansour, one of the students I’d met at Mesh. He’s been enthusiastically going [...]
  • 2004: Words to review for the GRE — chary cautious wary cloture closing device (in Parliament) to end a debate by voting coeval of the same period coexisting countervail counterbalance desuetude cessation of use disuse edacious voracious devouring encomium warm or [...]
  • 2004: My schedule now — M CS21A-B 8:30 9:30 F-227 (lecture) M CS110-A 10:30 |11:30 CTC215 M CS21A-G 11:30 |12:30 F-228 (mis) M CS139.3 1:30 4:30 W CS21A-B 8:30 9:30 F-227 (lecture) W CS110-A 10:30 |11:30 CTC215 W CS21A-G 11:30 |12:30 F-228 (mis) W CS139.3 1:30 2:30 . F CS21A-B 7:30 9:30 F-227 (lab) F CS110-A 10:30 |11:30 CTC215 F CS21A-G 11:30 |12:30 F-228 (mis) F CS139.3 1:30 2:30 . F CS21A-A 2:30 4:30 F-227 (lab for Dr. Sarmenta) T CS110-B 7:30 9:00 F-227 H CS110-B 7:30 9:00 F-227 I’m trying to see [...]
  • 2004: Sony Vaio U70 — http://www.dynamism.com/u70/ Ooooh, pretty…
  • 2004: Thoughts on natural language processing and possible research — Hmm, needs more thought. Wearable computing application: memory augmentation (personal information management, elderly) problems facing wearable computing (re information extraction/retrieval): - SPEECH-DRIVEN IMPLICIT QUERIES. A [...]
  • 2004: Donna Haraway’s “A Cyborg Manifesto: Science, Technology, and Socialist-Feminism in the Late Twentieth Century” — Simians, Cyborgs and Women: The Reinvention of Nature (New York; Routledge, 1991), pp.149-181. I don’t understand most of this yet. Haraway_CyborgManifesto.html

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!