Emacs: Jump to anything

I just came across the Anything extension for Emacs. After you load anything.el, you can type M-x anything RET and a substring of, well, anything. Looks like a handy shortcut. It’s like Quicksilver, but for Emacs. Grab anything-config.el for a bunch of useful functions.

Here’s my current configuration:

(require 'anything)
(require 'anything-config)
(setq anything-sources
      (list anything-c-source-buffers
            anything-c-source-file-name-history
            anything-c-source-info-pages
            anything-c-source-man-pages
	    anything-c-source-file-cache
            anything-c-source-emacs-commands))
(global-set-key (kbd "M-X") 'anything)

4 responses to “Emacs: Jump to anything”

  1. Phil says:

    My fave anything plugin is `anything-c-source-occur’, it’s excellent. Whilst I’m on it I posted the config for anything support with `project-root.el’ which lists all files it thinks are in your current project.

  2. Tamas says:

    If you come up with useful plugins for Anything then don’t forget to share it with others on Emacs Wiki:

    http://www.emacswiki.org/cgi-bin/wiki/AnythingSources

    anything.el is like Emacs. The more plugins people write for it the more useful it is.

  3. ky says:

    For those not familiar with quicksilver, a little longer explanation

    From http://bc.tech.coop/blog/070711.html

    “It’s a bit hard to describe (as is Quicksilver), but it really speeds up accessing things in Emacs. It doesn’t matter whether the thing you want to access is in a buffer, a file that you’ve recently accessed, a file in the current directory, a command you’ve recently evaluated, or whatever – you can quickly and easily “do things” with that object.” […]

    “All this takes a whole lot longer to explain than it does to do. The end result is very quick access to recently used “things” with the ability to perform a number of actions on those items.”

    Some more information available in this article …

  4. k says:

    My additional sources:

    anything-c-source-locate ; find files everywhere
    anything-c-source-mac-spotlight
    anything-c-source-bookmarks
    anything-c-source-google-suggest ; do a quick google search
    anything-c-source-calculation-result ; enter 2+1/7 and get results quickly, I use this all the time

    Quicksilver is now reduced to application launcher, anything.el is so much better :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>