<?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>MoRpHeUz&#039;s Blog &#187; qt emacs linux</title>
	<atom:link href="http://blog.morpheuz.cc/tag/qt-emacs-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.morpheuz.cc</link>
	<description>Just stuff ;)</description>
	<lastBuildDate>Sun, 29 Aug 2010 14:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Qt + Assistant + Emacs</title>
		<link>http://blog.morpheuz.cc/01/07/2008/qt-assistant-emacs/</link>
		<comments>http://blog.morpheuz.cc/01/07/2008/qt-assistant-emacs/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 21:19:52 +0000</pubDate>
		<dc:creator>morpheuz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Maemo]]></category>
		<category><![CDATA[qt emacs linux]]></category>

		<guid isPermaLink="false">http://labs.morpheuz.eng.br/blog/?p=57</guid>
		<description><![CDATA[Everytime I wanted to get a console I typed F12, willing to make Yakuake come down. But sometimes I pressed F11 and then Devhelp was loaded. It&#8217;s ok when you make this mistake one, two or even three times&#8230;but It was happening a lot. I searched my entire KDE&#8217;s shortcuts trying to find where the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Everytime I wanted to get a console I typed F12, willing to make <a title="yakuake" href="http://yakuake.uv.ro/" target="_blank">Yakuake</a> come down. But sometimes I pressed F11 and then <a title="Devhelp" href="http://developer.imendio.com/projects/devhelp" target="_blank">Devhelp</a> was loaded. It&#8217;s ok when you make this mistake one, two or even three times&#8230;but It was happening a lot.</p>
<p style="text-align: left;">I searched my entire KDE&#8217;s shortcuts trying to find where the hell was that key binding but I had no luck. After a while, I discovered that it only happened when I was inside Emacs&#8230;hmmm&#8230;of course it was an Emacs key binding and not KDE&#8217;s one!</p>
<p style="text-align: left;">Ok, now I was able to remove the F11 key binding, but the fun just started: how about binding <a title="Qt Assistant" href="http://doc.trolltech.com/4.0/assistant-manual.html" target="_blank">Qt&#8217;s Assistant</a> instead of <a title="Devhelp" href="http://developer.imendio.com/projects/devhelp" target="_blank">Devhelp</a> as I&#8217;m working much more with Qt than with GTK ??? <img src='http://blog.morpheuz.cc/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p style="text-align: left;">At first it looked pretty easy, just needing a few lines inside .emacs:<br />
<code><br />
(defun assistant ()<br />
"runs qt assistant"<br />
(interactive)<br />
(start-process-shell-command "assistant" nil "assistant")<br />
)<br />
(global-set-key [f11] 'assistant)<br />
</code>
</p>
<p style="text-align: left;">But now I really need Assistant to automatically search for a keyword when I open it. It would be much easier to just put the cursor in the keyword I want and make <a title="Qt Assistant" href="http://doc.trolltech.com/4.0/assistant-manual.html" target="_blank">Assistant</a> search for it. A few hours later I finished it and came along with the following patch on my &#8220;personal&#8221; Assistant:</p>
<p style="text-align: left;"><a href="http://labs.morpheuz.eng.br/blog/wp-content/uploads/2008/07/0001-created-search-keyword-function.patch">0001-created-search-keyword-function.patch</a></p>
<p style="text-align: left;">And my final Emac&#8217;s function:<br />
<code><br />
(defun assistant ()<br />
</code><code> "runs qt assistant"</code><br />
<code> (interactive)<br />
(start-process-shell-command "assistant" nil "assistant" "-search" (current-word))<br />
)<br />
(global-set-key [f11] 'assistant)</code>
</p>
<p style="text-align: left;">
<p style="text-align: center;"><a href="http://blog.morpheuz.cc/wp-content/uploads/2008/07/post1.jpg"><img class="alignnone size-medium wp-image-59 aligncenter" title="post" src="http://labs.morpheuz.eng.br/blog/wp-content/uploads/2008/07/post-300x279.jpg" alt="Emacs + Assistant" width="300" height="279" /></a></p>
<p style="text-align: left;">So much fun with Qt =P</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.morpheuz.cc/01/07/2008/qt-assistant-emacs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
