From: David Vanderschel <DJV5@Austin.RR.com>
To: help-gnu-emacs@gnu.org
Subject: Opening a file from dired as OS would in Linux
Date: Fri, 29 May 2009 17:09:21 +0000 (UTC) [thread overview]
Message-ID: <loom.20090529T170226-71@post.gmane.org> (raw)
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.
next reply other threads:[~2009-05-29 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-29 17:09 David Vanderschel [this message]
[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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20090529T170226-71@post.gmane.org \
--to=djv5@austin.rr.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).