[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Default application for org-reveal
From: |
Marco Wahl |
Subject: |
Re: [O] Default application for org-reveal |
Date: |
Sat, 07 Jan 2017 11:39:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hi,
Florian Lindner <address@hidden> writes:
> Hello,
>
> the Org Attach dispatcher offers a key "f" to open the attachment directory
> not in Emacs.
>
> (defun org-attach-reveal (&optional if-exists)
> "Show the attachment directory of the current task.
> This will attempt to use an external program to show the directory."
> (interactive "P")
> (let ((attach-dir (org-attach-dir (not if-exists))))
> (and attach-dir (org-open-file attach-dir))))
>
> On my two systems this is the same a F, it opens in dired. xdg-open . uses
> dolphin to open inode/directory. How does Emacs/org determine which
> application to use? How can I influence it?
The documentation of `org-open-file' points to variable `org-file-apps'.
You can customize `org-file-apps'.
E.g. the entry
[INS] [DEL] Cons-cell:
Choice: [Value Menu] Links to a directory
Choice: [Value Menu] Command: firefox %s
stands for opening directories in firefox.
Ciao
Marco