[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-store-link in dired buffer?

From: Carsten Dominik
Subject: Re: [Orgmode] org-store-link in dired buffer?
Date: Tue, 5 Sep 2006 10:01:56 +0200

On Sep 5, 2006, at 4:19, Xiao-Yong Jin wrote:

Hi folks, I don't know if you guys like dired.  But I think it could
be better if org-store-link could work even in dired buffer. I'd like
to see these behaviors of org-store-link in dired buffer.

1. If any file is marked, org-store-link stores the link to these
   marked files.

2. If none is marked, org-store-link stores the directory.

Yes, I think this would make sense, even though I'd prefer the link to be created to the file in the current line if there is no selection, and to the directory if the cursor is on the "." line.

By the way, from your messages I gather that you are putting links to lots and lots of files into the Org-mode file. If I need access many files in a project, I find it typically more efficient to just link to the directory and then use dired itself to navigate to the file I need. That also makes things easier when moving a project to a different directory....

Also, is it possible to open a file or directory link in dired, but
not really open it?

Ah, I see, this is the problem.

You need to tell Org-mode that you want to open directories in Emacs.

Customize org-file-apps, add a new entry where the car is `directory' and the cdr is `emacs', for example like this:

(setq org-file-apps
      '((directory . emacs)
        ("txt" . emacs)
        ("tex" . emacs)
        ("ltx" . emacs)
        ("org" . emacs)
        ("el" . emacs)
        ("bib" . emacs)))

- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]