From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Link to a local html file Date: Mon, 29 Jun 2009 19:50:29 +0530 Message-ID: References: <51b0095d0906290643p79145abalff08f38218ac9aca@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLHj6-0004Vh-1O for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:20:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLHj1-0004U5-Bf for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:20:55 -0400 Received: from [199.232.76.173] (port=40346 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLHj1-0004Tz-4g for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:20:51 -0400 Received: from an-out-0708.google.com ([209.85.132.246]:56828) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLHj0-0000yW-OR for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:20:50 -0400 Received: by an-out-0708.google.com with SMTP id b6so1526415ana.21 for ; Mon, 29 Jun 2009 07:20:49 -0700 (PDT) In-Reply-To: <51b0095d0906290643p79145abalff08f38218ac9aca@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Girard Cc: emacs-orgmode@gnu.org On Mon, Jun 29, 2009 at 7:13 PM, Nicolas Girard wrote: > Hi, > > how to create a link to a local html file, say, /path/to/file.html, so > that clicking on it opens the page in a browser ? One way to define a link to a file. --8<---------------cut here---------------start------------->8--- [[~/agenda.html][Agenda]] --8<---------------cut here---------------end--------------->8--- Following settings from .emacs open the link in a new Firefox tab. --8<---------------cut here---------------start------------->8--- '(browse-url-browser-function (quote browse-url-firefox)) '(browse-url-firefox-new-window-is-tab t) --8<---------------cut here---------------end--------------->8--- C-c C-o opens the link. HTH -- Manish