Skip to content

Instantly share code, notes, and snippets.

@podhmo
Forked from hitode909/zizo.el
Created December 22, 2010 13:36
Show Gist options
  • Save podhmo/751504 to your computer and use it in GitHub Desktop.
Save podhmo/751504 to your computer and use it in GitHub Desktop.
(defun _zizo (begin end format)
(let ((str (buffer-substring-no-properties begin end))
(rules '((" " "+") ("|" "%7C") ("\n" "|") ("?" "%3F") ("&" "%26"))))
(loop for (pat rep) in rules
do (setq str (replace-regexp-in-string pat rep str)))
(browse-url (concat format str))))
(defun zizo (begin end &optional arg)
(interactive "r\nP")
(_zizo begin end "http://chart.apis.google.com/chart?chst=d_text_outline&chld=000000|12|l|_|_|"))
(defun hotoke (begin end &optional arg)
(interactive "r\nP")
(_zizo begin end "http://chart.apis.google.com/chart?chst=d_text_outline&chld=ff0000|150|l|ffff00|b|"))
(provide 'zizo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment