<?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>Hotsolder &#187; emacs</title>
	<atom:link href="http://www.hotsolder.com/category/emacs/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hotsolder.com</link>
	<description>Electronics and other geeky pursuits!</description>
	<lastBuildDate>Sat, 31 Jul 2010 04:10:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Emacs, Chrome, and Daemons</title>
		<link>http://www.hotsolder.com/2010/05/emacs-chrome-and-daemons.html</link>
		<comments>http://www.hotsolder.com/2010/05/emacs-chrome-and-daemons.html#comments</comments>
		<pubDate>Sat, 15 May 2010 06:25:07 +0000</pubDate>
		<dc:creator>wd5gnr</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.hotsolder.com/?p=855</guid>
		<description><![CDATA[I  really liked the Chrome extension that lets you edit multiline text edits in Chrome with emacs (or, I guess any other editor &#8212; as though there are any other editors). However, it has to have a server running. You can run a python server or one in e-lisp. But the lisp one requires emacs [...]]]></description>
			<content:encoded><![CDATA[<p>I  really liked the Chrome extension that lets you edit multiline text edits in Chrome with emacs (or, I guess any other editor &#8212; as though there are any other editors). However, it has to have a server running. You can run a python server or one in e-lisp. But the lisp one requires emacs to be running already.</p>
<p>Here&#8217;s how I set mine up.</p>
<p>1) Autostart emacs &#8211;daemon using your choice of methods (autostart, Xsession, whatever)</p>
<p>2) In your .emacs you need this:</p>
<pre>(if (and (daemonp) (locate-library "edit-server"))</pre>
<pre>(progn</pre>
<pre>(require 'edit-server)</pre>
<pre>; can add options here like (setq edit-server-new-frame-mode-line t) (setq edit-server-new-frame-minibuffer t)</pre>
<pre>(edit-server-start)))</pre>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">3) Then in your .bashrc put this:</span></pre>
<pre>if [ -z "$DISPLAY" ]</pre>
<pre>then</pre>
<pre>  alias emacs='emacsclient -t'</pre>
<pre>
<pre>  export EDITOR='emacsclient -t'</pre>
</pre>
<pre>else</pre>
<pre>   alias emacs='emacsclient -c -n'</pre>
<pre>
<pre>   export EDITOR='emacsclient -c -n'</pre>
</pre>
<pre>fi</pre>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">Works great. Of course, you need to start the daemon manually THIS TIME (and execute the script lines) or log out and log back on for this to work.</span></pre>
<p>By the way, once you set up the alias, you can&#8217;t easily restart the emacs daemon. Remember you can override an alias with quotes: &#8216;emacs&#8217; &#8211;daemon</p>
<p>Update: you can set ALTERNATE_EDITOR in your environment to the empty string and emacsclient will start a daemon if one is not running. So that means you could skip step 1 if you add:</p>
<pre>export ALTERNATE_EDITOR=""</pre>
<p>to step 3. This is nice because if you kill the server (to reload your .emacs, for example) or it dies (unlikely) then things till work without the user having to reload the daemon manually. Of course, you can still keep step 1 as well which makes your initial load a little faster, and still protects you against a dead daemon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hotsolder.com/2010/05/emacs-chrome-and-daemons.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Gets the Emacs Religion</title>
		<link>http://www.hotsolder.com/2006/11/windows-gets-the-emacs-religion.html</link>
		<comments>http://www.hotsolder.com/2006/11/windows-gets-the-emacs-religion.html#comments</comments>
		<pubDate>Tue, 21 Nov 2006 14:33:00 +0000</pubDate>
		<dc:creator>wd5gnr</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.hotsolder.com/blog/2006/11/21/windows-gets-the-emacs-religion/</guid>
		<description><![CDATA[You know, for some of us Emacs isn&#8217;t a program &#8212; its the guiding force in life (well, maybe I&#8217;m going a little overboard&#8230; then again, maybe not).
The problem with getting those Emacs commands ingrained in your head (or your fingers) is that you then have to use other programs! It is very painful to [...]]]></description>
			<content:encoded><![CDATA[<p>You know, for some of us Emacs isn&#8217;t a program &#8212; its the guiding force in life (well, maybe I&#8217;m going a little overboard&#8230; then again, <a href="http://en.wikipedia.org/wiki/Church_of_Emacs#Humor" style="border-bottom-style: groove">maybe not</a>).</p>
<p>The problem with getting those Emacs commands ingrained in your head (or your fingers) is that you then have to use other programs! It is very painful to use Word or an IDE without those Emacs keystrokes.</p>
<p>I&#8217;m writing this on a Windows box using Firefox in a Blogger HTML editor. But guess what? Control+A takes me to the start of the line, Control+W cuts, and Control+Y pastes! Why? I&#8217;m running xkeymacs, a nice free program that lets you map Emacs keystrokes for Windows applications.</p>
<p>It does take a little work to get everything just right. For example, I added ^X-0 (zero) to send Firefox a Control+W which closes the current tab. ^X-2 can create a new tab. It is a little tricky to add new things (but not too bad, you just have to edit a text file with a lisp-like syntax). You also need to set it up so each program has its own settings (which means you can disable it for certain programs, or change Control+W to send escape (for Thunderbird, for example).</p>
<p>You can find xkeymacs here: <a href="http://www.cam.hi-ho.ne.jp/oishi/indexen.html" style="border-bottom-style: groove">http://www.cam.hi-ho.ne.jp/oishi/indexen.html </a></p>
<p>If you prefer just &#8220;fixing&#8221; Office applications, you might try: <a href="http://www.rath.ca/Misc/VBacs/">http://www.rath.ca/Misc/VBacs/</a></p>
<p>Oh, and if you don&#8217;t think Emacs is powerful enough, here&#8217;s some food for thought: <a href="http://www.informatimago.com/linux/emacs-on-user-mode-linux.html">http://www.informatimago.com/linux/emacs-on-user-mode-linux.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hotsolder.com/2006/11/windows-gets-the-emacs-religion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
