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

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

Re: ;;; anything.el --- open anything


From: Tassilo Horn
Subject: Re: ;;; anything.el --- open anything
Date: Sun, 22 Jul 2007 19:08:24 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Vagn Johansen <address@hidden> writes:

Hi Vagn,

> Just use the locate-like program mdfind.
>
> (defvar anything-source-mdfind
>   '((name . "mdfind")
>      (candidates . (lambda ()
>                      (start-process "mdfind-process" nil
>                        "mdfind" anything-pattern)))
>      (action . (("Find file" . find-file)
>                  ("Open" . 
>                    (lambda (file-name)
>                      (shell-command
>                        (concat "open " (shell-quote-argument file-name))
>                        nil)))))
>      (type . file)
>      (requires-pattern . 3))
>   "Source for retrieving files via mdfind.")
>
> (add-to-list 'anything-sources anything-source-mdfind)

Should I add this source to anything-config.el?

Bye,
Tassilo
-- 
The  desire  to  be  rewarded  for one's  creativity  does  not  justify
depriving  the world  in  general of  all  or part  of that  creativity.
(Richard M. Stallman)





reply via email to

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