<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.nozav.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Humus numericus - firefox</title>
  <link>http://blog.nozav.org/</link>
  <atom:link href="http://blog.nozav.org/feed/tag/firefox/rss2" rel="self" type="application/rss+xml"/>
  <description></description>
  <language>fr</language>
  <pubDate>Tue, 28 Oct 2008 22:42:16 +0100</pubDate>
  <copyright>Documents sous licence Creative commons</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Utiliser Mozilla Firefox pour ouvrir les liens sous Emacs/Gnus</title>
    <link>http://blog.nozav.org/post/2004/10/21/13-utiliser-mozilla-firefox-pour-ouvrir-les-liens-sous-emacsgnus</link>
    <guid isPermaLink="false">urn:md5:5a0b9c0bcc71c39ab607e1d82d9752b0</guid>
    <pubDate>Thu, 21 Oct 2004 10:59:02 +0000</pubDate>
    <dc:creator>Juba</dc:creator>
        <category>Emacs, Gnus</category>
        <category>emacs</category><category>firefox</category><category>gnus</category>    
    <description>    &lt;p&gt;La commande utilisée sous Emacs (et donc sous Gnus) pour ouvrir et afficher le contenu d'url contenues dans des documents ou des mails est à définir sous la forme d'une fonction à rattacher à la fonction browse-url-browser-function. Il existe un cetain nombre de fonctions par défaut, mais aucune pour Mozilla Firefox (en tous cas pour ma version d'Emacs, la 21.3.1). Grâce à &lt;a href=&quot;http://www.emacswiki.org&quot;&gt;EmacsWiki&lt;/a&gt; et à &lt;a href=&quot;http://groups.google.com&quot;&gt;Google Groups&lt;/a&gt;, j'ai pu bricoler une fonction qui permet d'ouvrir le lien dans un nouveau tab si une instance de Firefox tourne déjà, et de lancer le navigateur sinon.&lt;/p&gt;


&lt;p&gt;A priori ça fonctionne pour Firefox 0.9 et au-delà. Voici le code à rajouter dans votre .emacs&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;(defun browse-url-firefox-new-tab (url &amp;amp;optional new-window)
  &quot;Open URL in a new tab in Firefox.&quot;
  (interactive (browse-url-interactive-arg &quot;URL: &quot;))
  (let ((cmd (shell-command-to-string
              (concat &quot;mozilla-firefox -a firefox -remote 'openURL(&quot;
                        url &quot;,new-tab)' &amp;gt; /dev/null&quot;))))
    (unless (string= &quot;&quot; cmd)
      (message &quot;Starting Firefox...&quot;)
      (start-process (concat &quot;firefox &quot; url) nil &quot;/bin/sh&quot; &quot;-c&quot; 
               (concat &quot;mozilla-firefox &quot; url &quot;|| true&quot;))
      (message &quot;Starting Firefox...done&quot;))))&lt;/pre&gt;


&lt;pre&gt;(setq browse-url-browser-function 'browse-url-firefox-new-tab)&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.nozav.org/post/2004/10/21/13-utiliser-mozilla-firefox-pour-ouvrir-les-liens-sous-emacsgnus#comment-form</comments>
      <wfw:comment>http://blog.nozav.org/post/2004/10/21/13-utiliser-mozilla-firefox-pour-ouvrir-les-liens-sous-emacsgnus#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.nozav.org/feed/atom/comments/11</wfw:commentRss>
      </item>
    
</channel>
</rss>