Atom blogging via BPE

BPE Installation

Install Google Client commandline/API tools

On Ubuntu try

sudo apt-get install googlecl

Configure package

For me this looked like

cd ~src
bzunzip2 g-client.tar.bz2
tar -xvf g-client.tar
cd src/g-client
make config

install BPE form packages

BPE posting instructions

  • open an .org file
  • C-c C-i to insert a template
  • write the post
  • C-c C-p to posts
  • posts as draft
  • bug: have to insert a ” tagname” after “#+TAG:” in template.

BPE configuraiton code

; set up emacs interface to googlecl
(add-to-list 'load-path "~/src/g-client" t)
(load-library "g")

; setup bpe
(require 'bpe)
(require 'htmlize nil 'noerror) ; to fontify source code block on your blog.
(setq bpe:account   "")
(setq bpe:blog-name "usefulfoo")
(define-key org-mode-map (kbd "C-c C-p") 'bpe:post-article)
(define-key org-mode-map (kbd "C-c C-i") 'bpe:insert-template)
;; For Japanese, default is $LANG environment variable.
;(setq bpe:lang "ja_JP.UTF-8")

WordPress blogging

org2blog installation

org2blog posting instructions

  • Log in M-x org2blog/wp-login
  • Create a posting template M-x org2blog/wp-new-entry
  • post buffer as draft C-c d M-x org2blog/wp-post-buffer
  • publish buffer C-c p C-u M-x org2blog/wp-post-buffer
  • post buffer as page draft C-c D M-x org2blog/wp-post-buffer-as-page
  • publish buffer as page C-c P C-u M-x org2blog/wp-post-buffer-as-page

org2blog learning

play with it

learn how to post to different blogs

learn about tags, links, categories, etc.

org2blog configuration code

(setq load-path (cons "~/.emacs.d/elpa/org2blog-20130704.908/" load-path))
(require 'org2blog-autoloads)

(setq org2blog/wp-blog-alist
         :url ""
         :username "eludom"
         :default-title "Goodbye World"
         :default-categories ("org2blog" "emacs")
         :tags-as-categories nil)
         :url ""
         :username "eludom"
         :default-title "Set a title next time"
         :default-categories ("word" "vi")
         :tags-as-categories nil)
(message " finished.")