From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Open link with different suffix in org mode Date: Fri, 22 Jan 2010 10:32:54 +0100 Message-ID: References: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYFt2-0003EX-5h for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:33:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYFsx-0003EI-2E for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:33:03 -0500 Received: from [199.232.76.173] (port=55793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYFsw-0003EF-S1 for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:32:58 -0500 Received: from mail-fx0-f209.google.com ([209.85.220.209]:52323) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYFsw-0007If-Gf for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 04:32:58 -0500 Received: by fxm1 with SMTP id 1so1032085fxm.16 for ; Fri, 22 Jan 2010 01:32:57 -0800 (PST) In-Reply-To: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@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: Xin Shi Cc: emacs-orgmode On Jan 21, 2010, at 4:25 PM, Xin Shi wrote: > Hello Experts, > > I'm using Emacs 23.1.1 and org mode 6.34b. In the org file, if I > use a link say [[./link.org][test]], it will open the link.org file > in another buffer with orgmode. It will be also true, if I use [[./ > link.txt][link test]], which will open a link.txt file with Text > mode. However, if I do the following: > > [[./test.info][test]], it will just hang there. It seems that org > does not know how to deal with the .info suffix. Are there any way > to set the org to open different link? > I've read the org manual, but didn't find the solution. Any > suggestions? Hi Xin, one solution is to customize the variable org-file-apps and add to an entry like this: Choice: Value Menu Extension: \.info\' Choice: Value Menu Visit with Emacs Any file types that have an major-mode assigned to it using auto-mode-alist will already be visited by Emacs automatically, but .info is not one of those file types. So another solution would be something like the following in your setup. (add-to-list 'auto-mode-alist '("\\.info\\'" . text-mode)) Actualy, this is probably the better solution. HTH - Carsten