Re: [Orgmode] Open link with different suffix in org mode
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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Open link with different suffix in org mode
Hi, Xin, Xin Shi shixin...@gmail.com writes: Emacs 23.1.1 and org mode 6.34b. here: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Org-mode version 6.34 Windows XP PS3 a link say [[./http://link.org][test]], it will open the http://link.org file in another buffer with orgmode. [...] [[./http://test.info][test]], it will just hang there. + [[file:fit.log][fit]] fit.log is opened with notepad + [[file:../../../a.info][test]] a.info is not opened: the message error, in Italian, translates in: eval: ShellExecute failed: None application is associated to the specified file for this operation It seems that org does not know how to deal with the .info suffix. Well, I suspect that org calls the program defined in the mailcap file. Please check there if you have a program associated to the .info extension cheers, Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Open link with different suffix in org mode
Hi Carsten and Giovanni, I used (add-to-list 'auto-mode-alist '(\\.info\\' . text-mode)) and it works! By the way, my system is GNU Linux. Thanks! Xin On Fri, Jan 22, 2010 at 4:45 AM, Giovanni Ridolfi giovanni.rido...@yahoo.it wrote: Hi, Xin, Xin Shi shixin...@gmail.com writes: Emacs 23.1.1 and org mode 6.34b. here: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Org-mode version 6.34 Windows XP PS3 a link say [[./http://link.org][test]], it will open the http://link.org file in another buffer with orgmode. [...] [[./http://test.info][test]], it will just hang there. + [[file:fit.log][fit]] fit.log is opened with notepad + [[file:../../../a.info][test]] a.info is not opened: the message error, in Italian, translates in: eval: ShellExecute failed: None application is associated to the specified file for this operation It seems that org does not know how to deal with the .info suffix. Well, I suspect that org calls the program defined in the mailcap file. Please check there if you have a program associated to the .info extension cheers, Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Open link with different suffix in org mode
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? Thanks! Xin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode