bookmarking with uzbl and org-capture

I found this in a russian e-mail list archive (I haven’t found it again)

I use this little trick to capture bookmarks from my uzbl-browser.

Just add:

@cbind <Ctrl>e = sh ’emacsclient “org-protocol://capture://\\@/\\@”‘

to your

~/.config/uzbl/config

Every time I find something useful on the web I just press <Ctrl>e in my uzbl-browser and the current URL is send to my emacs. In emacs I can now turn the URL in a task, note, whatever and refile it to one of my projects. This way the information (the link) i stored where I need it.

My current org-capture setup is based on the excellent guide by Bernt Hansen.

Advertisements

using org2blog to blog with wordpress.com

howto blog from your emacs org-mode using org2blog

setting up emacs for blogging with wordpress is pretty easy. There are some packages out there which could do that job. I chose org2blog.

installing org2blog

you can install org2blog from github

https://github.com/punchagan/org2blog

just do

cd ~/.emacs.d

git clone http://github.com/punchagan/org2blog.git

Add the org2blog directory to your load path and then add

(setq load-path (cons “~/.emacs.d/org2blog/” load-path)) (require ‘org2blog-autoloads)

installing xml-rpc

org2blog requires xml-rpc. xml-rpc can be installed through the emacs package manager (until than I didn’t know anything about that).

to install xml-rpc just

M-x package-install xml-rpc

i had to add manually the load-path to xml-rpc.el in my .emacs

(setq load-path (cons “~/.emacs.d/elpa/xml-rpc-1.6.7/” load-path))

configuring org2blog

just add a few lines to your .emacs as described on the github-page https://github.com/punchagan/org2blog

(setq org2blog/wp-blog-alist ‘((“wordpress” :url “http://username.wordpress.com/xmlrpc.php” :username “username” :default-title “Hello World” :default-categories (“org2blog” “emacs”) :tags-as-categories nil)))

reload emacs to load the changes

now run

M-x eval-buffer

while in the .emacs buffer to load the changes

test your setup

now open a new org file.

to test org2blog you can now

M-x org2blog/wp-post-buffer

your post should now appear in your wordpress blog as a draft