<?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>Michael Schuerig &#187; Emacs</title>
	<atom:link href="http://www.schuerig.de/michael/blog/index.php/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schuerig.de/michael/blog</link>
	<description>Sentenced to making sense</description>
	<lastBuildDate>Tue, 06 Sep 2011 07:21:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Emacs Tidbit: Console or GUI?</title>
		<link>http://www.schuerig.de/michael/blog/index.php/2009/01/23/emacs-console-or-gui/</link>
		<comments>http://www.schuerig.de/michael/blog/index.php/2009/01/23/emacs-console-or-gui/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 20:10:32 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://www.schuerig.de/michael/blog/?p=46</guid>
		<description><![CDATA[Emacs has two different UIs: one using only a text console, the other using the window system. Even when a window system is present, Emacs can be started in a terminal emulator with the -nw option to show its text UI. There are some customizations you might want to make conditional on the kind of [...]]]></description>
			<content:encoded><![CDATA[<p>Emacs has two different UIs: one using only a text console, the other using the window system. Even when a window system is present, Emacs can be started in a terminal emulator with the <code>-nw</code> option to show its text UI.</p>
<p>There are some customizations you might want to make conditional on the kind of UI. In my case, I use <a href="http://ecb.sourceforge.net/">ECB</a>, and in general I&#8217;d like it to start up automatically when I launch Emacs, but only when running in GUI mode.</p>
<p>It&#8217;s pretty simple to achieve this, a small addition to <code>~/.emacs</code> does the trick.</p>
<p><code>
<pre>
(if (memq window-system '(x w32 mac))
  (ecb-activate))
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.schuerig.de/michael/blog/index.php/2009/01/23/emacs-console-or-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Line movement for Emacs</title>
		<link>http://www.schuerig.de/michael/blog/index.php/2009/01/16/line-movement-for-emacs/</link>
		<comments>http://www.schuerig.de/michael/blog/index.php/2009/01/16/line-movement-for-emacs/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 09:55:59 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Emacs Lisp]]></category>

		<guid isPermaLink="false">http://www.schuerig.de/michael/blog/?p=44</guid>
		<description><![CDATA[Recently, I&#8217;ve been mingling with two old acquaintances (if not downright friends): C and Emacs. Through my interaction with other text editors I&#8217;ve come to know functions to move the current line, i.e. the one containing the cursor, up or down. That&#8217;s something I wanted to have in Emacs too. And so I wrote my [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve been mingling with two old acquaintances (if not downright friends): <tt>C</tt> and <tt>Emacs</tt>. Through my interaction with other text editors I&#8217;ve come to know functions to move the current line, i.e. the one containing the cursor, up or down. That&#8217;s something I wanted to have in <tt>Emacs</tt> too. And so I wrote my first ever <tt>Emacs Lisp</tt> functions with some help from <a href="http://groups.google.com/group/comp.emacs/browse_thread/thread/9a0b9b2ab342762d#"><tt>comp.emacs</tt></a>.</p>
<p>Stick these definitions in <tt>~/.emacs</tt> and evaluate them or restart <tt>Emacs</tt>.</p>
<p><code>
<pre>
(defun move-line-down ()
  (interactive)
  (let ((col (current-column)))
    (save-excursion
      (next-line)
      (transpose-lines 1))
    (next-line)
    (move-to-column col)))

(defun move-line-up ()
  (interactive)
  (let ((col (current-column)))
    (save-excursion
      (next-line)
      (transpose-lines -1))
    (move-to-column col)))

(global-set-key [\M-down] 'move-line-down)
(global-set-key [\M-up] 'move-line-up)
</pre>
<p></code></p>
<p>Now you have Meta-Down and Meta-Up (i.e., probably Alt-Down and Alt-Up) bound to moving the current line around.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.schuerig.de/michael/blog/index.php/2009/01/16/line-movement-for-emacs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

