Main

November 18, 2006

Turn a plain text URL into a hyperlink wrapped in an LI

Add these lines to your .emacs:

(fset 'list-hyperlink-from-URL
[?< ?l ?i ?> ?< ?a ? ?h ?r ?e ?f ?= ?" ?\C-k ?\C-y ?" ?> ?\C-y ?< ?/ ?a ?> ?< ?/ ?l ?i ?> down ?\C-a])