all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jpkotta <jpkotta@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Opening a file from dired as OS would in Linux
Date: Sat, 30 May 2009 11:25:53 -0700 (PDT)	[thread overview]
Message-ID: <f9f8b32a-7f40-45f4-8432-7afb5b49c421@h23g2000vbc.googlegroups.com> (raw)
In-Reply-To: mailman.8088.1243617318.31690.help-gnu-emacs@gnu.org

On May 29, 12:09 pm, David Vanderschel <D...@Austin.RR.com> wrote:
> I have this handy function in my .emacs for Emacs on Windows:
>
> ;; dired stuff to open files a la Windows from Howard Melman
> (defun dired-execute-file (&optional arg)
>   (interactive "P")
>   (mapcar #'(lambda (file)
>       (w32-shell-execute "open" (convert-standard-filename file)))
>           (dired-get-marked-files nil arg)))
>
> I am now switching over to Ubuntu, and I do not know how to say the equivalent
> of "(w32-shell-execute "open" ...".  But I would certainly like to be able to
> launch files from dired.  E.g., open this .PDF file in the viewer.  Maybe it is
> already there, but I have difficulty framing the question in an effective way
> for search.  Thanks for any pointers.

This pretty much depends on which desktop environment/file manager you
use.  Some shell commands to look at are xdg-open, kfmclient exec, and
gnome-open.


  parent reply	other threads:[~2009-05-30 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8088.1243617318.31690.help-gnu-emacs@gnu.org>
2009-05-30  2:12 ` Opening a file from dired as OS would in Linux notbob
2009-05-30 18:25 ` jpkotta [this message]
2009-05-29 17:09 David Vanderschel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9f8b32a-7f40-45f4-8432-7afb5b49c421@h23g2000vbc.googlegroups.com \
    --to=jpkotta@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.