<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Search on /usr</title><link>https://slashusr.anupamsg.me/tags/search/</link><description>Recent content in Search on /usr</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 08 Aug 2009 00:00:00 +0000</lastBuildDate><atom:link href="https://slashusr.anupamsg.me/tags/search/index.xml" rel="self" type="application/rss+xml"/><item><title>Using OSX Spotlight from within Emacs</title><link>https://slashusr.anupamsg.me/2009/08/08/using-osx-spotlight-from-within-emacs/</link><pubDate>Sat, 08 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/08/using-osx-spotlight-from-within-emacs/</guid><description>&lt;p&gt;&lt;a href="http://www.gnu.org/software/emacs/"&gt;Emacs&lt;/a&gt; comes with a ‘locate’ command that uses the &lt;a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?locate+1"&gt;locate&lt;/a&gt; system command to find files within your system.&lt;/p&gt;
&lt;p&gt;On OS X, it is easier to use &lt;a href="http://www.apple.com/sg/macosx/features/spotlight/"&gt;Spotlight&lt;/a&gt;, which is trivial to enable in Emacs.&lt;/p&gt;
&lt;p&gt;In your .emacs file, add the following code:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(setq locate-command &amp;#34;mdfind&amp;#34;)
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;Now try: 
M-x locate &amp;lt;enter your search here&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Your search results will be displayed in a new Window.&lt;/p&gt;</description></item></channel></rss>