From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Dan Nicolaescu <dann@gnu.org>
Cc: rubikitch@ruby-lang.org, emacs-devel@gnu.org
Subject: Re: more on anything.el inclusion
Date: Thu, 01 Jul 2010 10:53:02 +0200 [thread overview]
Message-ID: <87r5jn8txt.fsf@tux.homenetwork> (raw)
In-Reply-To: <yxq630zha45.fsf@fencepost.gnu.org> (Dan Nicolaescu's message of "Thu, 01 Jul 2010 04:36:26 -0400")
Dan Nicolaescu <dann@gnu.org> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> Dan Nicolaescu <dann@gnu.org> writes:
>>
>>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>>
>>>> Dan Nicolaescu <dann@gnu.org> writes:
>>>>
>>>>>> Actually installing anything is easy and work out of the box with only:
>>>>>>
>>>>>> (require 'anything-config)
>>>>>> (require 'anything-match-plugin) ; facultatif
>>>>>
>>>>> For packages included in emacs we try to avoid using require to
>>>>> activate the package. [I don't know anything about this particular
>>>>> package, so...]
>>>>
>>>> A lot of autoload cookies are missing in anything-config, however,
>>>>
>>>> (autoload 'anything-find-files "anything-config.el" "" t)
>>>>
>>>> is enough to enable anything.
>>>
>>> That's the same as using require. The preferred way is to do it with
>>> a function call, or a mode.
>>>
>>>>>> Anything is now self documented both in mode-line and with C-h m or your
>>>>>> usual help command, but yes a manual would be nice.
>>>>>
>>>>> Can you please add some brief description of what it actually does?
>>>>>
>>>>> ;;;; anything.el --- open anything / QuickSilver-like candidate-selection framework
>>>>>
>>>>> does not tell much...
>>>>
>>>> anything is a framework that allow to setup an interactive and
>>>> incremental display to select candidate and provide diverses actions on
>>>> it or many of them.
>>>>
>>>> Basically, you can see that as a big completing-read, but incremental
>>>> with nice display, and providing differents action on candidate selected
>>>> in collection.
>>>
>>> And how do you use it?
>>
>> On the user side, if you use anything-config.el, there is already build
>> in sources ready for use, so you can use provided functions like any
>> other emacs one (e.g M-x anything-xfonts).
>
> This is still hard to grasp...
> Can you provide concrete examples of typical problems and how
> anything.el solves them?
Say you want to see how look dejavu fonts in emacs:
M-x anything-xfonts RET
enter in prompt: deja
Move anything overlay with C-n/p or down/up
Hit C-z
Hit TAB to see provided actions
Hit C-g to exit doing nothing
Hit RET to exit doing the default action.
Did you read example i provide under here?
>
>
>
>>
>> For the developper who want to write his own anything source the best
>> actually is to look at the sources wrote in anything-config.el.
>>
>> Basically, you run anything like that:
>>
>> (anything 'source)
>>
>> source is an alist that you can write like that:
>> (Where name, candidates, action are anything attributes.
>> You have a lot of attributes, for full info, use:
>> M-x anything-describe-anything-attribute)
>>
>> (defvar mysource
>> '((name . "A simple example that open all file with extension .el")
>> (candidates . (lambda ()
>> (loop for i in (directory-files default-directory)
>> when (string= (file-name-extension i) "el")
>> collect i)))
>> (action . (("Open file" . find-file)
>> ("Do something else" . (lambda (candidate)
>> ;; Write here something more
>> ;; useful than nil
>> nil))))))
>>
>> ;; [EVAL] (anything 'mysource)
>>
>> After evaluating line above to see if your new source work as expected,
>> you can now define your new anything command:
>>
>> (defun my-new-anything-command ()
>> (interactive)
>> (anything 'mysource))
>>
>>
>>> BTW, this might be obvious to you, but for people that have not used
>>> the package is not. Adding a few lines of describing what it does and
>>> how to use it is very helpful. [Please note that this has no relation
>>> to getting this package included in emacs, this is just what a
>>> potential user would like].
>>>
>>
>> --
>> Thierry Volpiatto
>> Gpg key: http://pgp.mit.edu/
>
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
next prev parent reply other threads:[~2010-07-01 8:53 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 12:43 No answer on bugs Thierry Volpiatto
2010-06-29 13:12 ` Lennart Borgman
2010-06-29 13:54 ` Karl Fogel
2010-06-29 14:14 ` Thierry Volpiatto
2010-06-29 19:26 ` Tassilo Horn
2010-06-29 19:57 ` Thierry Volpiatto
2010-06-29 20:10 ` Tassilo Horn
2010-06-29 20:16 ` Thierry Volpiatto
2010-07-13 21:31 ` Base patch for bug #5975 (bookmarking from Gnus Article buffer) Karl Fogel
2010-04-19 17:07 ` bug#5975: 24.0.50; [PATCH]Feature request: bookmarking from gnus article buffer Thierry Volpiatto
2010-05-17 14:14 ` Thierry Volpiatto
2010-07-13 21:46 ` bug#5975: Bazaar branch where this is being fixed Karl Fogel
2010-07-13 23:30 ` bug#5975: Base patch for bug #5975 (bookmarking from Gnus Article buffer) Glenn Morris
2010-07-14 19:48 ` bug#5975: [PATCH] Allow using C-w (bookmark-yank-word) when bookmarking from a gnus article buffer Thierry Volpiatto
2010-07-13 21:41 ` Base patch for bug #5975 (bookmarking from Gnus Article buffer) Karl Fogel
2010-07-14 8:29 ` Thierry Volpiatto
2010-07-14 8:37 ` Eli Zaretskii
2010-07-14 9:06 ` Thierry Volpiatto
2010-07-14 9:42 ` Eli Zaretskii
2010-07-14 10:07 ` Thierry Volpiatto
2010-07-14 10:18 ` Eli Zaretskii
2010-07-14 10:57 ` Thierry Volpiatto
2010-07-14 15:32 ` Karl Fogel
2010-07-13 21:41 ` bug#5975: " Karl Fogel
2010-07-13 23:30 ` Glenn Morris
2010-07-14 0:33 ` Karl Fogel
2010-07-14 0:33 ` bug#5975: " Karl Fogel
2010-07-14 8:55 ` Andreas Schwab
2010-07-14 8:55 ` Andreas Schwab
2010-07-14 15:29 ` Karl Fogel
2010-07-14 15:29 ` bug#5975: " Karl Fogel
2010-07-14 5:03 ` Thierry Volpiatto
2010-07-14 16:06 ` Karl Fogel
2010-07-14 16:55 ` Karl Fogel
2010-07-13 21:31 ` bug#5975: " Karl Fogel
2010-06-30 18:16 ` No answer on bugs Ted Zlatanov
2010-06-30 18:36 ` Thierry Volpiatto
2010-06-30 19:23 ` more on anything.el inclusion (was: No answer on bugs) Ted Zlatanov
2010-06-30 20:10 ` more on anything.el inclusion Thierry Volpiatto
2010-06-30 22:59 ` Dan Nicolaescu
2010-07-01 5:53 ` Thierry Volpiatto
2010-07-01 6:48 ` Dan Nicolaescu
2010-07-01 7:50 ` Thierry Volpiatto
2010-07-01 8:36 ` Dan Nicolaescu
2010-07-01 8:53 ` Thierry Volpiatto [this message]
2010-07-01 16:02 ` Dan Nicolaescu
2010-07-01 16:33 ` Harald Hanche-Olsen
2010-07-01 16:43 ` Ted Zlatanov
2010-07-01 17:18 ` Thierry Volpiatto
2010-07-01 17:43 ` Dan Nicolaescu
2010-07-01 18:14 ` Thierry Volpiatto
2010-07-01 18:48 ` Ted Zlatanov
2010-07-01 18:57 ` Wojciech Meyer
2010-07-01 17:36 ` Harald Hanche-Olsen
2010-07-01 15:20 ` Anything Use Case (was: more on anything.el inclusion) Memnon Anon
2010-07-01 13:18 ` more on anything.el inclusion Ted Zlatanov
2010-07-01 14:15 ` Thierry Volpiatto
2010-07-01 14:48 ` Lennart Borgman
2010-07-01 15:55 ` Ted Zlatanov
2010-07-01 16:43 ` Lennart Borgman
2010-07-01 18:55 ` Ted Zlatanov
2010-07-01 22:08 ` Lennart Borgman
2010-07-09 14:46 ` Thierry Volpiatto
2010-07-17 13:37 ` rubikitch
2010-07-17 15:16 ` Thierry Volpiatto
2010-07-04 22:02 ` Stefan Monnier
2010-07-07 16:47 ` Ted Zlatanov
2010-07-23 15:35 ` Stefan Monnier
2010-07-23 21:49 ` rubikitch
2010-08-12 23:02 ` Ted Zlatanov
2010-08-24 19:24 ` rubikitch
2010-08-25 13:51 ` Juri Linkov
2010-09-11 12:02 ` Thierry Volpiatto
2010-09-11 11:59 ` Thierry Volpiatto
-- strict thread matches above, loose matches on Subject: below --
2010-07-10 18:27 MON KEY
2010-07-10 19:20 ` Thierry Volpiatto
2010-07-12 13:53 ` Ted Zlatanov
[not found] <87630icytd.fsf@tux.homenetwork>
2010-07-14 16:44 ` bug#5975: [PATCH] Allow using C-w (bookmark-yank-word) when bookmarking from a gnus article buffer Karl Fogel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5jn8txt.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=dann@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rubikitch@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.