From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: launching appropriate application from file link in org file Date: Mon, 14 Nov 2011 19:32:59 -0500 Message-ID: References: <4EC18334.1000506@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e64356401c7df404b1bb216c Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQ6xR-0007eL-7U for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 19:33:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQ6xQ-0005q1-8L for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 19:33:01 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:61694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQ6xQ-0005pt-4s for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 19:33:00 -0500 Received: by yenm10 with SMTP id m10so3586240yen.0 for ; Mon, 14 Nov 2011 16:32:59 -0800 (PST) In-Reply-To: <4EC18334.1000506@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marc Croteau Cc: emacs-orgmode@gnu.org --0016e64356401c7df404b1bb216c Content-Type: text/plain; charset=UTF-8 Assuming your keePass file has an appropriate file extension you should be able to have it open automatically by customizing: M-x customize-variable org-file-apps and adding the file extension to the list of types (either with default or by specifying exactly which application to use for the attachment. Regards, On Mon, Nov 14, 2011 at 16:08, Marc Croteau wrote: > Hello, > > Hope someone can help. > I have made a link to a file in my org file, > Many links call the appropriate application (for example, a link to a > '.odt' launches the oowriter application. > For one specific file, a keePass file, Emac org simply tries to open its > in fundamental mode (and it appears as a binary file). > I am able to launch correctly the file from the dired. Note, however, > that I have added code to my init.el to use gnome to launch the file. > My question: can I somehow tell org-mode about how I want files of this > type to be opened should I double-click them. > > Hope my question is clear enough. > > Thank you in advance. > Marc Croteau > Toronto > > > --0016e64356401c7df404b1bb216c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Assuming your keePass file has an appropriate file extension you shoul= d be able to have it open automatically by customizing:
M-x c= ustomize-variable <ret> org-file-apps <ret>
and addin= g the file extension to the list of types (either with default or by specif= ying exactly which application to use for the attachment.

Regards,

On Mon, No= v 14, 2011 at 16:08, Marc Croteau <mdcroteau@gmail.com> wrote:
Hello,

Hope someone can help.
I have made a link to a file in my org file,
Many links call the appropriate application (for example, a link to a '= .odt' launches the oowriter application.
For one specific file, a keePass file, Emac org simply tries to open its in= fundamental mode (and it appears as a binary file).
I am able to launch correctly the file from the dired. =C2=A0Note, however,= that I have added code to my init.el to use gnome to launch the file.
My question: =C2=A0can I somehow tell org-mode about how I want files of th= is type to be opened should I double-click them.

Hope my question is clear enough.

Thank you in advance.
Marc Croteau
Toronto



--0016e64356401c7df404b1bb216c--