emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] New link type for yubnub url-commands


From: Brad Collins
Subject: [emacs-wiki-discuss] New link type for yubnub url-commands
Date: Mon, 20 Jun 2005 13:54:48 +0700
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt)

hi folks/

These are trivial hacks to use yubnub in Emacs and planner-mode.

Yubnub is a web service for url-commands.  It's only been out a few
days but a lot of people are using it already.  If you use firefox
it's well worth adding it to your search bar.

 
http://mycroft.mozdev.org/download.html?name=yubnub&submitform=Find+search+plugins

As soon as I'd played with it for five minutes I wanted to be able
to use it from emacs, as well as use Planner to call yubnub commands.

Included is "planner-yubnub.el" which allows you to create extended
wiki hyper-links for yubnub commands:

  ;; To open open a request for comment (rfc)
  ;;  [[yubnub://rfc 2252][See RFC2252]] 
  ;;
  ;; To look up a domain name in the whois database:
  ;;  [[yubnub://whois yubnub.org][whois database entry for yubnub.org]]
  ;;
  ;; To search for something in Google
  ;;  [[yubnub://gg Charles Dickens][Google for Charles Dickens]]


Attachment: planner-yubnub.el
Description: planner-yubnub.el

You can also use the following function to interactively send yubnub
commands:

(defun yubnub (command)
  "Use `browse-url' to submits a command to yubnub and opens
result in an external browser defined in `browse-url-browser-function'.

To get started  `M-x yubnub <RET> ls <RET>' will return a list of 
all yubnub commands."
  (interactive "sCommand:")
  (browse-url 
   (concat "http://yubnub.org/parser/parse?command="; command)))

Enjoy!

Cheers,

b/

-- 
Brad Collins <address@hidden>, Bangkok, Thailand


reply via email to

[Prev in Thread] Current Thread [Next in Thread]