<?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>constantly.at &#187; emacs</title>
	<atom:link href="http://constantly.at/tag/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://constantly.at</link>
	<description>Infrequently updated</description>
	<lastBuildDate>Sun, 22 Aug 2010 14:59:48 +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>On Line Wrapping in Emacs 23(pre)</title>
		<link>http://constantly.at/2009/05/on-line-wrapping-in-emacs-23pre/</link>
		<comments>http://constantly.at/2009/05/on-line-wrapping-in-emacs-23pre/#comments</comments>
		<pubDate>Mon, 25 May 2009 14:06:13 +0000</pubDate>
		<dc:creator>rudi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://constantly.at/?p=74</guid>
		<description><![CDATA[Emacs, my editor of choice, is currently in pre-test; the next version, 23, will feature unicode, anti-aliased fonts and many other goodies. Â It will also feature soft (visual) line wrapping and the attendant redefinition of next-line and previous-line commands for moving by lines-as-seen-on-screen instead of lines-as-contained-in-the-file. Â This is very good for text modes and proportional [...]]]></description>
			<content:encoded><![CDATA[<p>Emacs, my editor of choice, is currently in pre-test; the next version, 23, will feature unicode, anti-aliased fonts and many other goodies. Â It will also feature soft (visual) line wrapping and the attendant redefinition of next-line and previous-line commands for moving by lines-as-seen-on-screen instead of lines-as-contained-in-the-file. Â This is very good for text modes and proportional fonts, but breaks programming modes, editing tabular data and keyboard macros.</p>
<p>Normally, functionality like this is implemented as a minor mode (viz. show-paren-mode, transient-mark-mode, font-lock, &#8230;), but cursor movement by visual line is a <em>global setting</em> instead, causing no end of discussions on the emacs mailing list. Â The maintainers&#8217; current stance seems to be &#8220;we&#8217;re in pre-test, so can only accept bug fixes for regressions from emacs 22, and this was already discussed 6 months ago.&#8221;</p>
<p>Luckily, emacs is quite customizable, so I implemented the behavior I want: visual line mode (soft word-wrapped lines) and visual line movement (cursor moves down one visual line instead of one text-file line) for text modes, and the normal behavior in all other modes.</p>
<pre>(setq line-move-visual nil)
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
(add-hook 'text-mode-hook
          (lambda () (set (make-local-variable 'line-move-visual) t)))</pre>
]]></content:encoded>
			<wfw:commentRss>http://constantly.at/2009/05/on-line-wrapping-in-emacs-23pre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
