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: Fri, 24 Aug 2007 18:24:12 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Bill Clementson <address@hidden> writes:

Hi Bill,

>> Or do you have a better idea?
>
> Something like the following should work:
>
> (defvar anything-c-man-pages nil "All man pages on system")
>
> (defvar anything-c-source-man-pages
>   `((name . "Manual Pages")
>     (candidates . (lambda ()
>                   (if (not anything-c-man-pages)
>                       (when (require 'woman nil t)
>                         (woman-file-name "")
>                         (setq anything-c-man-pages 
>                               (sort (mapcar 'car
>                                             woman-topic-all-completions)
>                                     'string-lessp)))
>                     anything-c-man-pages)))
>     (action . (("Show with Woman" . woman)))
>     (requires-pattern . 2)))

Oh, yes.  I added something like this for the man and the info source.

Bye,
Tassilo
-- 
Fighting patents one by one  will never eliminate the danger of software
patents,  any  more than  swatting  mosquitoes  will eliminate  malaria.
(Richard M. Stallman)





reply via email to

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