Sunday, February 04, 2007

Untitled post on Sun Feb 04 21:18:14 2007

Posting remembered data in emacs

Here's the important piece of code:

<example>
;; Attach this feature to remember:
(defun blogspot-post-when-remember-maybe ()
(when (y-or-n-p "You might as well send this to your blog, if you're online. Go for it? ")
(let ((body (buffer-string)))
(blogspot nil nil body)
nil)))


(add-hook 'remember-handler-functions 'blogspot-post-when-remember-maybe)
</example>

0 comments: