Right-clicking a file in most GUI file managers provides an “Open with” menu for choosing which application should be used. This package implements such functionality for Emacs default file manager Dired.
There is a video about helm-dired-open. You can use this package
exactly the same, only the command is now M-x dired-open-with
.
The package is available on MELPA
(use-package dired-open-with
:ensure t)
The M-x dired-open-with
command works out of the box without any
additional configuration. If you want to change candidates for a
given file type, change your XDG settings.
If you don’t need an “Open with” dialog but rather open files in
their default appliaction, you can use M-x dired-open
or
M-x dired-open-xdg
from the dired-hacks package.
There is also helm-dired-open, which as the name suggests is limited to Helm. However, it provides some configuration options that this packages doesn’t have.