Using OSX Spotlight from within Emacs

8 08 2009

Emacs comes with a ‘locate’ command that uses the locate system command to find files within your system.

On OS X, it is easier to use Spotlight, which is trivial to enable in Emacs.

In your .emacs file, add the following code:

(setq locate-command "mdfind")
Now try: 
M-x locate <enter your search here>

Your search results will be displayed in a new Window.

About these ads

Actions

Information

One response

23 01 2010
Tweets that mention Using OSX Spotlight from within Emacs « /usr -- Topsy.com

[...] This post was mentioned on Twitter by KANEUCHI Tetsuya, takashi yamamiya. takashi yamamiya said: これは便利。RT @kaniza: Mac の Emacs では、locate-command を mdfind に指定することで簡単に Spotlight が使える。 http://bit.ly/4D3xCw [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: