Write blog with Emacs

Emacs can be annoying to switch to something else for a text oriented task. With weblogger.el you can writting to your blog without ener leaving Emacs.
I have wordpress installed,but it should work for any other blogging software with the same XMLRPC interface.
Getting and Starting
First getting the latest copy of webblogger.el and xml-rpc.el from Savannah. Just click the *.el file and then click "download".
Once you've gotten both webblogger.el and xml-rpc.el place them somewhere that your Emacs can find them.
Example:


cd /tmp
wget http://cvs.savannah.gnu.org/viewvc/weblogger/lisp/weblogger.el?root=emacsweblogs&view=log
wget http://cvs.savannah.gnu.org/viewvc/weblogger/lisp/xml-rpc.el?root=emacsweblogs&view=log
mv *.el ~/.emacs.d/lisp/

Then you need to load weblogger, added a require line for weblogger to your ~/.emacs.

Require lines:

; Load weblogger
(load "weblogger")

Load weblogger:

emacs
M-x weblogger-setup-weblog

This will create a profile for posting,saving the blog url,username and some settings to your ~/.emacs. You will be asked for the "Server Endpoing(url)" which for wordpress is http://***.***.***/blog/xmlrpc.php.
Posting
You're now ready to make your first post. Input M-x weblogger-start-entry to start your first entry. When you are finished input C-x C-s to save and submit the post. To save your post as a deaft without submitting it input C-c C-c.
Editing Earlier Posts
To come back to a previous post input M-x weblogger-fetch-entries. This will open a buffer with your latest entry. You can then move to previous entries with C-c C-p and later entries with C-c C-n.
I did notice a bug though, which may actually be in WordPress’s XMLRPC code. If you use the tag in your post you will not get the entire post when you try to edit the entry in weblogger. You need to remove the tag with the WordPress entry and then editing the post from Emacs will work again.

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: