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: Bill Clementson
Subject: Re: ;;; anything.el --- open anything
Date: Fri, 24 Aug 2007 10:13:59 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

Hi Tassilo,

Tassilo Horn <address@hidden> writes:

> 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.

Yep, works fine now - thanks!

- Bill





reply via email to

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