bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#14110: 24.3.50; Add command to open files outside of Emacs (use xdg-


From: Thierry Volpiatto
Subject: bug#14110: 24.3.50; Add command to open files outside of Emacs (use xdg-open, open etc)
Date: Fri, 05 Apr 2013 08:03:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Jambunathan K <kjambunathan@gmail.com>
>> Date: Thu, 04 Apr 2013 23:22:37 +0530
>> Cc: 14110@debbugs.gnu.org
>> 
>> The alist is already maintained by the user's desktop (likely via
>> Explore->`Open with' -> `Always use this application for these files').
>> Emacs should at no point in time have any knowledge of this association.
>
> Emacs can easily know about the associations, at least on Windows.

Here what I do in helm:

Default action to open a file is always edit the file in emacs with the
right mode.

Use another command to open file externally (async).
This command can use a prefix to choose program to use (with
completion).
Once you choose this program your choice is stored in an alist with
customize. (So no need for user to customize complex alist)
Each time you want to change, you can press C-u to make another choice.
If you answer yes, this new program will replace the precedent in alist,
no will use the new program without storing it.
If you don't press C-u the last program used for this kind of file is
used.
If the command is called with no choice (not C-u) and nothing for this
file extension is found in alist helm looks for mailcap entries.

It is good to be able to change program at any time, e.g for foo.jpg,
you may use sometimes imagemagick, ristretto, or gimp etc....

I also have a command that use default tool with no choice (xdg-open)
but I don't like it.

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 






reply via email to

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