Tuesday, September 14, 2010

Getting org-googlecl

2010-09-14 Tue 21:14

A few days ago I wrote about how to set up googlecl in order to use Richard Riley's wonderful addition to emacs called org-googlecl. Tragically I did not even hint at how to get it. This post gives that hint, but assumes that git is already installed on the system and that the user knows how to configure emacs to use code in non-standard locations.

  1. Change to the directory for the installation (e.g. ~/prj)
    cd ~/prj
  2. Clone the repository
    git clone http://github.com/rileyrg/org-googlecl.git
  3. Add the new directory (~/prj/org-googlecl) to the emacs path by putting something like the following in a configuration file
    (add-to-list 'load-path "~/prj/org-googlecl")
  4. Load the library in emacs
    (load-library "org-googlecl")
  5. Set the configuration items for the blog
    (setq googlecl-blogname "Natural Log of X")
    (setq googlecl-username "<GoogleUserName@gmail.com>")
  6. After writing an entry in orgmode, publish the entry (defined by the outline level) to the blog
    M-x org-googlecl-blog RET
  7. Keep current with org-googlecl by updating the source
    cd ~/prj/org-googlecl
    git pull