emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Jan Böcker" <jan.boecker@jboecker.de>
To: Leo Alekseyev <dnquark@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Make file:... directory links open dired by default
Date: Wed, 02 Feb 2011 16:35:31 +0100	[thread overview]
Message-ID: <4D4979C3.2060908@jboecker.de> (raw)
In-Reply-To: <AANLkTin2-rAjbnuS990Sx18z7G7TnD5ux9R8=ahG=R1w@mail.gmail.com>

On 01/24/2011 05:38 AM, Leo Alekseyev wrote:
> I am working under Windows, and by default links like file:~/path...
> open in Explorer.  I can manually change the link to
> file+emacs:~/path... and then it opens in dired -- but is there a way
> to change the default behavior so that when I press C-c C-l to store
> the directory links as file+emacs to begin with?..  Alternatively, is
> there a way to make file: links behave like file+emacs? (I'm not sure
> if this is a good idea since it might impact things other than
> directories).
> --Leo
> 

Hi Leo,

take a look at the variable org-file-apps:
M-x customize-variable RET org-file-apps RET

Try adding an entry like this:

[INS] [DEL] Cons-cell:
            Choice: [Value Menu] Links to a directory
            Choice: [Value Menu] Visit with Emacs

I have not tested this (since I am not using Org on Windows), but it
looks to me like it should work.

Regards,
Jan

      reply	other threads:[~2011-02-02 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-24  4:38 Make file:... directory links open dired by default Leo Alekseyev
2011-02-02 15:35 ` Jan Böcker [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D4979C3.2060908@jboecker.de \
    --to=jan.boecker@jboecker.de \
    --cc=dnquark@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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).