[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Blogging org entries using google command line.

From: Richard Riley
Subject: [Orgmode] Blogging org entries using google command line.
Date: Wed, 08 Sep 2010 23:11:18 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Using the google command line you can get some super access to all your
Google resources - including docs, calendars &  blogs.


Once you have installed it and set up your OAUTH you can easily
manipulate/add/delete things in your google hosted data.

While not polished and featuring hard coded blog name the following
function uses the google command line tool to blog the current

--8<---------------cut here---------------start------------->8---
  (defun rgr/org-blog-entry ()
      (let ((tmpheading (org-get-heading)))
          (goto-char (org-entry-beginning-position))
          (set-mark (org-entry-end-position))
          (let*((tmpfile (make-temp-file "org-blog-html-"))
               (blog-command (concat "google blogger post --blog \"Open Sauce\" 
--title '" tmpheading "' "  tmpfile )))
            (org-export-as-html 1 nil nil (find-file-noselect tmpfile) t)
            (with-current-buffer (get-file-buffer tmpfile) (save-buffer))
            (start-process-shell-command "Google Blog" "*googlecl*" 
--8<---------------cut here---------------end--------------->8---

At some point I'll try and make it more generic with customised options
if no one beats me to it ..



☘ http://www.shamrockirishbar.com, http://www.richardriley.net

"Learning French is trivial: the word for horse is 'cheval' and
 everything follows thusly."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]