help-gnu-emacs
[Top][All Lists]
Advanced

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

anything.el and emacs lisp


From: weber
Subject: anything.el and emacs lisp
Date: Thu, 12 Jul 2007 17:14:24 -0000
User-agent: G2/1.0

Hello!
I'm trying to make anything.el include a category called My Places.
The problem is that it's not a simple list, but a list of pairs, like
this:

(setq my-places '(
 ( "Someproject" "c:/user/proj1/")
 ( "Anotherone" "c:/user/proj2/")))

I want to match on "Someproject" but use "c:\user\proj1" on the
action.
Matching on the first element of the pair is just customizing anything-
sources like this:

 ((name . "Places")
          (candidates . (lambda () (mapcar (lambda (x) (fst x)) my-places)))
          (action . open-folder ))

Now, anyone can show me how to apply the action on the second element
of the pair ?

Thanks in advance,
weber



reply via email to

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