Alex Henning home about projects blog

Keeping Track of Ideas for Blog Posts

So, I've been having some good ideas for blog posts. So many that, rather than post about them, I'm writing a post about how I improved my workflow! So, what improvement have I made? I can now type M-x blog-idea idea and it will save the idea to a file. This is somewhat influenced by org-remember, however, it separates my blog ideas from the rest of the nonsense.

First I created blog/draft/blog-ideas.org since I wanted to keep track of my files with org-mode. I separated my initial ideas by topic with the last topic being misc. Then I went about implementing some elisp for M-x blog-idea so that it prompted me for the idea and then appended it to the end of the ideas file.

1:  (defun blog-idea ()
2:    (interactive)
3:    (let* ((idea (read-from-minibuffer "Idea: " nil))
4:           (line (concat "- [ ] " idea "\n")))
5:      (with-temp-buffer
6:        (insert line)
7:        (append-to-file  (point-min) (point-max)
8:                         "~/Dropbox/blog/draft/blog-ideas.org"))))
9:  

Then, I made M-x blog-ideas a shortcut for opening blog-ideas.org, which is short and sweet:

1:  (defun blog-ideas ()
2:    (interactive)
3:    (find-file "~/Dropbox/blog/draft/blog-ideas.org"))
4:  

This is why I love EMACS!

Posted on 28 October 2010 in blogging workflow

<Previous: MIT Doesn't use the Common AppNext: Pretty Lambdas!>

blog comments powered by Disqus