From: Carsten Dominik <carsten.dominik@gmail.com>
To: Xin Shi <shixin111@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Open link with different suffix in org mode
Date: Fri, 22 Jan 2010 10:32:54 +0100 [thread overview]
Message-ID: <AA0952BA-4713-4721-819B-7382407080A1@gmail.com> (raw)
In-Reply-To: <5236d6f91001210725t3b9a177cs6308622bce8d09d2@mail.gmail.com>
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
next prev parent reply other threads:[~2010-01-22 9:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 15:25 Open link with different suffix in org mode Xin Shi
2010-01-22 9:32 ` Carsten Dominik [this message]
2010-01-22 9:45 ` Giovanni Ridolfi
2010-01-22 13:55 ` Xin Shi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AA0952BA-4713-4721-819B-7382407080A1@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=shixin111@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.