« links for 2006-11-18 | Main | links for 2006-11-19 »

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])