Org Mode is a really nice mode for emacs, I use it daily to keep todo lists, but it does a lot more. For this post I’m not going to talk about the details of org mode, but if you’re not familiar with it and are interested, I found Abhijeet Chavan’s article on linuxjournal to be a great starting point.
To get started, you don’t need to add much more to your .emacs than this:
(add-to-list 'load-path "~/.emacs.d/vendor/org-7.5/lisp") (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))I recently discovered org2blog, a means of publishing blog posts to wordpress from within org mode. I guess it’s now technically org2blog/wp, so as not to be confused with another org2blog for blogger, but whatever.
I added this for org2blog:
(require 'org2blog-autoloads) (setq org2blog/wp-blog-alist '(("wordpress" :url "http://myblog.com/xmlrpc.php" :username "username" :default-categories ("emacs")))) (setq org2blog/wp-use-tags-as-categories t)wordpress above is the name of the entry, you’ll use it later.
And lastly, because I work behind a strict firewall, my proxy info:
(setq url-proxy-services '(("http" . "my.awesome.proxy:8081")))To get started, I’d recommended reading the instructions on the github page, but quickly:
- Login- M-x org2blog/wp-login. It will prompt you for the entry, and then your password.
- M-x org2blog/wp-new-entry. Give your post a title, write something.
- C-c d to post buffer as draft. It will prompt you to preview in a browser. Do that.
- C-c p publish away!