<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Bitlbee and Emacs</title>
	<atom:link href="http://nflath.com/2009/10/bitlbee-and-emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://nflath.com/2009/10/bitlbee-and-emacs/</link>
	<description>Technology-related ideas, mainly involving Emacs</description>
	<pubDate>Sun, 05 Feb 2012 18:37:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: quodlibetor</title>
		<link>http://nflath.com/2009/10/bitlbee-and-emacs/comment-page-1/#comment-943</link>
		<dc:creator>quodlibetor</dc:creator>
		<pubDate>Mon, 26 Apr 2010 00:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=428#comment-943</guid>
		<description>Thanks for the tips, nearly all of them ended up in &lt;a href="http://hg.quodlibetor.com/hg/hgwebdir.cgi/emacs.d/file/tip/customize/chat.el" rel="nofollow"&gt;my .emacs&lt;/a&gt;.

I modified your erc-notify-on-msg to message me for any private bitlbee buffers, and to stick the name of the sender as the header line:

(defun erc-notify-on-msg (msg)
  "Send a message via notify-send if a message specifically to me"
  (if (or (string-match "MY-NICK:" msg)
	  (and (string= "localhost" erc-session-server)
	       (not (string-match "\\*\\*\\*" msg))
	       (not (string-match "\" msg))))
      (let ((nameless-msg (replace-regexp-in-string "^\ " "" msg)))
	(shell-command (concat "notify-send \"" (buffer-name) "\" \"" nameless-msg "\"")))))
(add-hook 'erc-insert-pre-hook 'erc-notify-on-msg)

Since I have erc open up a new buffer for chats this works pretty well for me. If you've got bitlbee set up to use a fancy server instead of localhost you'd need to change that line, but otherwise it should work.</description>
		<content:encoded><![CDATA[<p>Thanks for the tips, nearly all of them ended up in <a href="http://hg.quodlibetor.com/hg/hgwebdir.cgi/emacs.d/file/tip/customize/chat.el" rel="nofollow">my .emacs</a>.</p>
<p>I modified your erc-notify-on-msg to message me for any private bitlbee buffers, and to stick the name of the sender as the header line:</p>
<p>(defun erc-notify-on-msg (msg)<br />
  &#8220;Send a message via notify-send if a message specifically to me&#8221;<br />
  (if (or (string-match &#8220;MY-NICK:&#8221; msg)<br />
	  (and (string= &#8220;localhost&#8221; erc-session-server)<br />
	       (not (string-match &#8220;\\*\\*\\*&#8221; msg))<br />
	       (not (string-match &#8220;\&#8221; msg))))<br />
      (let ((nameless-msg (replace-regexp-in-string &#8220;^\ &#8221; &#8220;&#8221; msg)))<br />
	(shell-command (concat &#8220;notify-send \&#8221;" (buffer-name) &#8220;\&#8221; \&#8221;" nameless-msg &#8220;\&#8221;")))))<br />
(add-hook &#8216;erc-insert-pre-hook &#8216;erc-notify-on-msg)</p>
<p>Since I have erc open up a new buffer for chats this works pretty well for me. If you&#8217;ve got bitlbee set up to use a fancy server instead of localhost you&#8217;d need to change that line, but otherwise it should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://nflath.com/2009/10/bitlbee-and-emacs/comment-page-1/#comment-437</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=428#comment-437</guid>
		<description>And to follow up with what Peter said, putting

    (setq erc-auto-query 'buffer)

will create a new buffer for each IM to you.</description>
		<content:encoded><![CDATA[<p>And to follow up with what Peter said, putting</p>
<p>    (setq erc-auto-query &#8216;buffer)</p>
<p>will create a new buffer for each IM to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://nflath.com/2009/10/bitlbee-and-emacs/comment-page-1/#comment-436</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=428#comment-436</guid>
		<description>EmacsWiki has a couple of methods for getting alerts when you get a private message.

http://www.emacswiki.org/cgi-bin/wiki/ErcPageMe

I opted for the my-erc-page-me-PRIVMSG route.</description>
		<content:encoded><![CDATA[<p>EmacsWiki has a couple of methods for getting alerts when you get a private message.</p>
<p><a href="http://www.emacswiki.org/cgi-bin/wiki/ErcPageMe" rel="nofollow">http://www.emacswiki.org/cgi-bin/wiki/ErcPageMe</a></p>
<p>I opted for the my-erc-page-me-PRIVMSG route.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Jones</title>
		<link>http://nflath.com/2009/10/bitlbee-and-emacs/comment-page-1/#comment-427</link>
		<dc:creator>Peter Jones</dc:creator>
		<pubDate>Sat, 17 Oct 2009 17:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=428#comment-427</guid>
		<description>Nathaniel, you don't have to worry about prepending nicks in the public channel if you start a new private message with people.  This will place each IM conversation into a dedicated buffer.  It also helps you figure out who just talked to you in IM.

You do this in the public channel by issuing a "/q nick" command.  I also have ERC configured to create a new buffer when someone messages me.</description>
		<content:encoded><![CDATA[<p>Nathaniel, you don&#8217;t have to worry about prepending nicks in the public channel if you start a new private message with people.  This will place each IM conversation into a dedicated buffer.  It also helps you figure out who just talked to you in IM.</p>
<p>You do this in the public channel by issuing a &#8220;/q nick&#8221; command.  I also have ERC configured to create a new buffer when someone messages me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

