<?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>Osx on /usr</title><link>https://slashusr.anupamsg.me/tags/osx/</link><description>Recent content in Osx on /usr</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Aug 2009 00:00:00 +0000</lastBuildDate><atom:link href="https://slashusr.anupamsg.me/tags/osx/index.xml" rel="self" type="application/rss+xml"/><item><title>Tips for using emacsclient and server-mode on OSX</title><link>https://slashusr.anupamsg.me/2009/08/11/tips-for-using-emacsclient-on-osx/</link><pubDate>Tue, 11 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/11/tips-for-using-emacsclient-on-osx/</guid><description>&lt;p&gt;&lt;a href="http://www.gnu.org/software/emacs"&gt;Emacs&lt;/a&gt; is a great editor, but has one setback - it is slow to startup if you have loads of packages to load. On my G4 iBook, it takes around 45 seconds before Emacs becomes usable (OK - I use lots of packages).&lt;/p&gt;
&lt;p&gt;However, Emacs is not meant to be restarted every so often. The canonical usage is to start Emacs once, invoke the server mode (see &lt;a href="http://www.emacswiki.org/emacs/EmacsClient"&gt;EmacsClient&lt;/a&gt;) and then use the &lt;a href="http://www.manpagez.com/man/1/emacsclient/"&gt;emacsclient&lt;/a&gt; from the command line to invoke the editor instance when needed. I.e., the classic client/server model for editing!&lt;/p&gt;</description></item><item><title>Emulate a three button Mouse in Emacs on a single button Mac trackpad/mouse</title><link>https://slashusr.anupamsg.me/2009/08/09/emulate-a-three-button-mouse-in-emacs-on-a-single-button-mac-trackpadmouse/</link><pubDate>Sun, 09 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/09/emulate-a-three-button-mouse-in-emacs-on-a-single-button-mac-trackpadmouse/</guid><description>&lt;p&gt;Traditionally, mice on Macs have had just one button (including the iBook/Powerbook trackpads) - even through Mac OS (including OS X) can accept 2 or 3 button input without any problems.&lt;/p&gt;
&lt;p&gt;Emacs on the other hand maps quite a few functions to the second and third chords of the mice. If you want to emulate a three button mouse in Emacs on OS X, a simple customization option will do the trick.&lt;/p&gt;</description></item><item><title>Using M-` from switching Emacs Frames on OSX</title><link>https://slashusr.anupamsg.me/2009/08/09/using-m-from-switching-emacs-frames-on-osx/</link><pubDate>Sun, 09 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/09/using-m-from-switching-emacs-frames-on-osx/</guid><description>&lt;p&gt;The standard &lt;a href="http://www.gnu.org/software/emacs"&gt;Emacs&lt;/a&gt; key-binding for moving to the other frame (‘other-frame’) is C-x 5 o. That’s quite a few key-strokes, and also does not match with the standard OS X key-mapping for switching windows, which is Command-`. On OS X, the Command key maps to Meta in Emacs.&lt;/p&gt;
&lt;p&gt;However, this is easy to fix. Put the following code-fragment into your .emacs file:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(define-key icicle-mode-map [?\M-`] nil) # Only needed if you use Icicles
(global-set-key [?\M-`] &amp;#39;other-frame) # This sets the key binding
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note that by default M-` invokes ‘tmm-menubar’ which can also be accessed via [F10]. Also, you do not need the first line (to undefine the key binding in &lt;a href="http://www.emacswiki.org/emacs/Icicles"&gt;Icicles&lt;/a&gt;) if you do not use that package.&lt;/p&gt;</description></item><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>