<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Artisan Coder &#187; Emacs</title>
	<atom:link href="http://www.artisancoder.com/tag/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.artisancoder.com</link>
	<description>Software development as a craft</description>
	<lastBuildDate>Thu, 15 Dec 2011 10:57:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The Emacs client</title>
		<link>http://www.artisancoder.com/2008/04/the-emacs-client/</link>
		<comments>http://www.artisancoder.com/2008/04/the-emacs-client/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 20:14:34 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.ventonegro.org/?p=6</guid>
		<description><![CDATA[I know that for most Emacs users out there this is not worth writing about, but I have been using Emacs for less than two years and I cannot help hiding my awe everytime I discover something like this. This time is the emacsclient program. Unfortunately at work I am stuck with Windows. I am [...]]]></description>
			<content:encoded><![CDATA[<p>I know that for most Emacs users out there this is not worth writing about, but I have been using Emacs for less than two years and I cannot help hiding my awe everytime I discover something like this. This time is the emacsclient program.</p>
<p>Unfortunately at work I am stuck with Windows. I am a long-time Vim user so I have it installed, which adds an &#8220;Open with vim&#8230;&#8221;  entry to the Explorer shell. This opens a new Vim instance everytime it&#8217;s used. A similar approach won&#8217;t tempt Emacs users because you do not  open Emacs everytime you open a file. You open Emacs once a week or <em>once a month</em> and keep it running. So enter emacsclient.</p>
<p>It acts as an independent program for an external caller. When started, this program looks for an already running instance of Emacs and connects to it, which then acts as a server and edits the requested file (to accept connections, <tt>server-start</tt> must have been run in Emacs. I have it in my <tt>.emacs</tt> file). When the user is done, he types <tt>C-x #</tt> in the server buffer. Then emacsclient exits and the external caller assumes the editing application has quit.</p>
<p>This is very useful, for instance, for writing commit log messages. My <tt>EDITOR</tt> environment variable points to emacsclient. Everytime I need to commit code in Subversion or  Monotone, the log message appears as a new buffer in my running Emacs. It is also useful for the Firefox extension <a href="https://addons.mozilla.org/firefox/addon/4125" title="It's All Text!">It&#8217;s All Text!</a>, which allows one to use an external text editor to edit web forms. And, of course, I have added an &#8220;Edit with Emacs&#8230;&#8221; entry to my Explorer shell, so I can open any file into a running Emacs very quickly.</p>
<p>Instructions about how to add the shell shortcut can be found in the <a href="http://www.emacswiki.org/cgi-bin/wiki/EmacsClient" title="Emacs Client">Emacs wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artisancoder.com/2008/04/the-emacs-client/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

