<?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>Linux etc. &#187; Emacs</title>
	<atom:link href="http://promberger.info/linux/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Emacs 22 does not highlight region</title>
		<link>http://promberger.info/linux/2011/09/08/emacs-22-does-not-highlight-region/</link>
		<comments>http://promberger.info/linux/2011/09/08/emacs-22-does-not-highlight-region/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 11:06:06 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=395</guid>
		<description><![CDATA[Well, I doubt many people have this problem. For some reason, on a server I use the installed Emacs version is Emacs&#160;22, not the current Emacs&#160;23, and I ran into the problem that I was expecting transient-mark-mode when it was in persistent-mark-mode, as I figured out here. However, it&#8217;s the kind of solution you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I doubt many people have this problem. For some reason, on a server I use the installed Emacs version is Emacs&nbsp;22, not the current Emacs&nbsp;23, and I ran into the problem that I was expecting <code>transient-mark-mode</code> when it was in <code>persistent-mark-mode</code>, as I figured out <a href="http://www.gnu.org/s/libtool/manual/emacs/Mark.html">here</a>. However, it&#8217;s the kind of solution you don&#8217;t easily find when you don&#8217;t know Emacs terminology (mark, point, region, active), so an attempt to make this more googleable especially for Emacs newbies:</p>
<p>The symptom was that in an Emacs buffer, after hitting Ctrl and the spacebar (<code>C-space</code>) and then moving the cursor, I was expecting the text in between (between mark and point) to be highlighted (indicating an active region), but the region was not highlighted and not active. Accordingly, then doing a <code>replace-string</code> and expecting it to replace text in the region that is &#8220;normally&#8221; (in Emacs&nbsp;23) highlighted did not replace anything. (I was, however, able to cut and paste (kill and yank) the same region. In Emacs-speak, the region was not active. Another symptom: after <code>M-x replace-string</code> where I normally see &#8220;Replace string in region&#8221; in the minibuffer, it now only said &#8220;Replace string&#8221;. </p>
<p>The solution:</p>
<pre>M-x transient-mark-mode</pre>
<p>to enable transient-mark-mode and get the expected behaviour (this command toggles it on and off). </p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2011/09/08/emacs-22-does-not-highlight-region/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Emacs key bindings in Ubuntu</title>
		<link>http://promberger.info/linux/2010/02/16/how-to-get-emacs-key-bindings-in-ubuntu/</link>
		<comments>http://promberger.info/linux/2010/02/16/how-to-get-emacs-key-bindings-in-ubuntu/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 12:59:45 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[misc.]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=353</guid>
		<description><![CDATA[To get the Emacs key bindings (especially, Ctrl-a to go to beginning of line, Ctrl-e to end of line) systemwide, e.g. in Firefox, you use: gconf-editor and change the setting desktop &#8594; gnome &#8594; interface &#8594; gtk_key_theme from &#8220;Default&#8221; to &#8220;Emacs&#8221;.]]></description>
			<content:encoded><![CDATA[<p>To get the Emacs key bindings (especially, Ctrl-a to go to beginning of line, Ctrl-e to end of line) systemwide, e.g. in Firefox, you use:</p>
<pre>gconf-editor</pre>
<p>and change the setting desktop &rarr; gnome &rarr; interface &rarr; gtk_key_theme from &#8220;Default&#8221; to &#8220;Emacs&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/02/16/how-to-get-emacs-key-bindings-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Emacs with ESS and AucTeX on Windows</title>
		<link>http://promberger.info/linux/2009/09/14/emacs-with-ess-and-auctex-on-windows/</link>
		<comments>http://promberger.info/linux/2009/09/14/emacs-with-ess-and-auctex-on-windows/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 10:53:14 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[MS Windows]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=270</guid>
		<description><![CDATA[I will have to use MS Windows for my new job, at least some of the time. I&#8217;ll put related posts in a new &#8220;MS Windows&#8221; category. If you use R, you most likely want ESS (Emacs Speaks Statistics) for your GNU Emacs. If you use LaTeX, you will also want AucTeX. I highly recommend [...]]]></description>
			<content:encoded><![CDATA[<p>I will have to use MS Windows for my new job, at least some of the time. I&#8217;ll put related posts in a new &#8220;MS Windows&#8221; category.</p>
<p>If you use <a href="http://www.r-project.org">R</a>, you most likely want <a href="http://ess.r-project.org/">ESS (Emacs Speaks Statistics)</a> for your GNU Emacs. If you use LaTeX, you will also want AucTeX. </p>
<p>I highly recommend you use <a href="http://vgoulet.act.ulaval.ca/en/ressources/emacs/">Vincent Goulet&#8217;s modified Emacs version</a>. As an additional benefit, it comes as a convenient self-installing .exe file.</p>
<p>Thanks Vincent!</p>
<p>p.s. To get LaTeX on Windows, you will want to get <a href="http://miktex.org/">MiKTeX</a>. MiKTeX is very nice and can auto-install missing packages on the fly when you want to use them in a document.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/09/14/emacs-with-ess-and-auctex-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs regular expressions: match at least n occurrences of character class</title>
		<link>http://promberger.info/linux/2009/06/16/emacs-regular-expressions-match-exactly-n-occurrences-of-character-class/</link>
		<comments>http://promberger.info/linux/2009/06/16/emacs-regular-expressions-match-exactly-n-occurrences-of-character-class/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 09:40:49 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[Regular expressions]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=213</guid>
		<description><![CDATA[Aside: I just discovered the very useful Emacs regex builder tool. Type M-x regexp-builder. I wanted a regular expression to match the pattern of mutt mail edit buffers, to apply mail-mode, but I did not want to match the muttrc and mutt.hooks files I have. Mail edit buffers get a pattern that starts with &#8220;mutt&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>Aside: I just discovered the very useful Emacs regex builder tool. Type <code>M-x regexp-builder</code>.</p>
<p>I wanted a regular expression to match the pattern of mutt mail edit buffers, to apply mail-mode, but I did not want to match the <code>muttrc</code> and <code>mutt.hooks</code> files I have.</p>
<p>Mail edit buffers get a pattern that starts with &#8220;mutt&#8221;, followed by a combination of dashes, letters and numbers. Examples:</p>
<pre>mutt-lauren-ad34AD-
muttadR12
muttadrsd</pre>
<p>The pattern <code>mutt[-0-9a-zA-Z]+$</code> matches these just fine, but it would also match <code>muttrc</code>. So I want a regex that looks for at least three occurrences from the character class described in the brackets. Generally, this is done using <code>{3,}</code> (using the <code>{m,n}</code> pattern to match at least <i>m</i> and at most <i>n</i> occurrences). (You can match exactly <i>n</i> occurrences, by using <code>{3}</code>).</p>
<p>In Emacs, this didn&#8217;t work, and it turns out I had to escape the curly brackets <strong>twice</strong>: <code>mutt[-0-9a-zA-Z]\\{3,\\}$</code>.</p>
<p>Here&#8217;s the full section in my <code>.emacs</code> file:</p>
<pre>(defun mutt-edit-hook ()
  (setq fill-column 70)
  (setq make-backup-files nil)
  )

(add-to-list 'auto-mode-alist '("mutt[-0-9a-zA-Z]\\{3,\\}$" . mail-mode))
(add-hook 'mail-mode-hook 'turn-on-auto-fill)
(add-hook 'mail-mode-hook 'mutt-edit-hook)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/06/16/emacs-regular-expressions-match-exactly-n-occurrences-of-character-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu/ Linux: How to permanently turn off the annoying system bell (beep)</title>
		<link>http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/</link>
		<comments>http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 18:27:48 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/</guid>
		<description><![CDATA[You know what I mean &#8230; that loud loud beep that almost knocks you out whenever you type a non-available keyboard shortcut in Emacs. For immediate relief (this will not persist through a reboot): sudo modprobe -r pcspkr For permanent relief, edit the file /etc/modprobe.d/blacklist and add the line: blacklist pcspkr Addendum On my Lenovo [...]]]></description>
			<content:encoded><![CDATA[<p>You know what I mean &#8230; that loud loud beep that almost knocks you out whenever you type a non-available keyboard shortcut in Emacs.</p>
<p>For immediate relief (this will not persist through a reboot):</p>
<pre>sudo modprobe -r pcspkr</pre>
<p>For permanent relief, edit the file <code>/etc/modprobe.d/blacklist</code> and add the line:</p>
<pre>blacklist pcspkr</pre>
<h3>Addendum</h3>
<p>On my Lenovo Thinkpad X41, there was still an annoying loud beep whenever I plugged in or unplugged the AC power cord. I had to disable this in the BIOS.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better buffer switching in Emacs</title>
		<link>http://promberger.info/linux/2008/05/20/better-buffer-switching-in-emacs/</link>
		<comments>http://promberger.info/linux/2008/05/20/better-buffer-switching-in-emacs/#comments</comments>
		<pubDate>Tue, 20 May 2008 22:25:17 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/05/20/better-buffer-switching-in-emacs/</guid>
		<description><![CDATA[I&#8217;ve switched from XEmacs to Emacs, about a month back. I like it much better. On Xubuntu, many more things work &#8220;out of the box&#8221; (for example the Noweb mode for Sweave). X clipboard contents are immediately available for yanking! One thing that&#8217;s always annoyed me in both XEmacs and Emacs was the buffer switching [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve switched from XEmacs to Emacs, about a month back. I like it much better. On Xubuntu, many more things work &#8220;out of the box&#8221; (for example the Noweb mode for Sweave).  X clipboard contents are immediately available for yanking!</p>
<p>One thing that&#8217;s always annoyed me in both XEmacs and Emacs was the buffer switching using <code>C-x b</code>. In theory, this has a nice history you can cycle through using the up arrow, but this history never contained all of my open buffers. About fifty percent of the time, for reasons only  known to the Lisp gurus, it did not offer the one buffer I wanted to switch to, even if I only had three different buffers open. OTOH, it did always contain all kinds of buffers I never in my life want to even see, such as *scratch*, *Messages*, *ESS*. Yikes.</p>
<p>This is what does away with all of this (in <code>~/.emacs</code>):</p>
<pre>; Better buffer switching
(iswitchb-mode 1)
; Ignore all kinds of special Emacs buffers that start with a *,
; but don't ignore the R process buffer (*R*)
(add-to-list 'iswitchb-buffer-ignore "*[^R]")</pre>
<p>Not only does this have a sensible history to cycle through, <code>C-x&nbsp;b</code> shows the names of all open buffers in the minibuffer, and you can &#8220;find as you type&#8221;, even for parts of the buffer name that are not at the beginning. So you can immediately type the letters that are unique to that buffer name, handy when you&#8217;re working on a project where the .tex and several .R files all start with the same project prefix.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/05/20/better-buffer-switching-in-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs &amp; weblogger.el</title>
		<link>http://promberger.info/linux/2008/04/15/emacs-webloggerel/</link>
		<comments>http://promberger.info/linux/2008/04/15/emacs-webloggerel/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 11:40:05 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/04/15/emacs-webloggerel/</guid>
		<description><![CDATA[Weblogger.el offers a nice way to post directly to a WordPress blog from Emacs; here&#8217;s a good description how to set it up. In addition: When creating an entry, you can also set categories by adding a line &#8220;Keywords:&#8221; to the header, such as: Keywords: Linux, Emacs, Noobs I haven&#8217;t figured out how to do [...]]]></description>
			<content:encoded><![CDATA[<p>Weblogger.el offers a nice way to post directly to a WordPress blog from Emacs; here&#8217;s a good description <a href="http://www.tolchz.net/2008/01/06/posting-to-wordpress-with-emacs-webloggerel/">how to set it up</a>.</p>
<p>In addition: When creating an entry, you can also set categories by adding a line &#8220;Keywords:&#8221; to the header, such as:</p>
<pre>Keywords: Linux, Emacs, Noobs</pre>
<p>I haven&#8217;t figured out how to do trackbacks yet, but I do that rarely enough. Even when I have to use the web interface, I can use Emacs via <a href="http://mozex.mozdev.org/">Mozex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/04/15/emacs-webloggerel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XEmacs: how to change fill-column on the fly</title>
		<link>http://promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/</link>
		<comments>http://promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 14:00:18 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[XEmacs]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/</guid>
		<description><![CDATA[XEmacs uses fill-column to break lines at a width defined by the user, either automatically as you type, or whenever you hit M-q, depending on whether auto-fill-mode is set to 1 or to &#8722;1. For me, the default is set to 70 in ~/.xemacs/init.el by this line:(setq&#160;default-fill-column&#160;70). If you want to change fill-column temporarily for [...]]]></description>
			<content:encoded><![CDATA[<p>XEmacs uses <code>fill-column</code> to break lines at a width defined by the user, either automatically as you type, or whenever you hit <code>M-q</code>, depending on whether <code>auto-fill-mode</code> is set to <code>1</code> or to <code>&minus;1</code>.</p>
<p>For me, the default is set to 70 in <code>~/.xemacs/init.el</code> by this line:<br /><code>(setq&nbsp;default-fill-column&nbsp;70)</code>.</p>
<p>If you want to change fill-column temporarily for the current buffer, you&#8217;ll figure out quickly enough that you can use <code>M-x set-fill-column</code> or <code>C-x f</code>. However, if you&#8217;re hoping to use that and then just enter a number, it doesn&#8217;t work, but instead XEmacs complains:</p>
<pre>set-fill-column requires an explicit argument</pre>
<p>You need to give that first using <code>C-u</code>.</p>
<p>For example, to change <code>fill-column</code> to 80:</p>
<pre>C-u 80&lt;RET&gt;C-x f&lt;RET&gt;</pre>
<p>To change fill-column to where point currently is, omit the argument to <code>C-u</code>:</p>
<pre>C-u&lt;RET&gt;C-x f&lt;RET&gt;</pre>
<h3>Addendum</h3>
<p>Maybe I made a mistake, or maybe things are different with Emacs, which I am now using. In any case, on Emacs, you should not hit enter between <code>C-u</code> (and its argument, if any) and the <code>C-x f</code>. So the commands to type would be:</p>
<pre>C-u 80 C-x f</pre>
<p>and </p>
<pre>C-u C-x f</pre>
<p>respectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

