emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Open link with different suffix in org mode
@ 2010-01-21 15:25 Xin Shi
  2010-01-22  9:32 ` Carsten Dominik
  2010-01-22  9:45 ` Giovanni Ridolfi
  0 siblings, 2 replies; 4+ messages in thread
From: Xin Shi @ 2010-01-21 15:25 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 580 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 724 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Open link with different suffix in org mode
  2010-01-21 15:25 Open link with different suffix in org mode Xin Shi
@ 2010-01-22  9:32 ` Carsten Dominik
  2010-01-22  9:45 ` Giovanni Ridolfi
  1 sibling, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2010-01-22  9:32 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Open link with different suffix in org mode
  2010-01-21 15:25 Open link with different suffix in org mode Xin Shi
  2010-01-22  9:32 ` Carsten Dominik
@ 2010-01-22  9:45 ` Giovanni Ridolfi
  2010-01-22 13:55   ` Xin Shi
  1 sibling, 1 reply; 4+ messages in thread
From: Giovanni Ridolfi @ 2010-01-22  9:45 UTC (permalink / raw)
  To: Xin Shi; +Cc: emacs-orgmode

Hi, Xin,

Xin Shi <shixin111@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Open link with different suffix in org mode
  2010-01-22  9:45 ` Giovanni Ridolfi
@ 2010-01-22 13:55   ` Xin Shi
  0 siblings, 0 replies; 4+ messages in thread
From: Xin Shi @ 2010-01-22 13:55 UTC (permalink / raw)
  To: Giovanni Ridolfi, Carsten Dominik; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1175 bytes --]

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.ridolfi@yahoo.it
> wrote:

> Hi, Xin,
>
> Xin Shi <shixin111@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
>

[-- Attachment #1.2: Type: text/html, Size: 1955 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-22 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 15:25 Open link with different suffix in org mode Xin Shi
2010-01-22  9:32 ` Carsten Dominik
2010-01-22  9:45 ` Giovanni Ridolfi
2010-01-22 13:55   ` Xin Shi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).