* Re: Opening a file from dired as OS would in Linux
[not found] <mailman.8088.1243617318.31690.help-gnu-emacs@gnu.org>
@ 2009-05-30 2:12 ` notbob
2009-05-30 18:25 ` jpkotta
1 sibling, 0 replies; 3+ messages in thread
From: notbob @ 2009-05-30 2:12 UTC (permalink / raw
To: help-gnu-emacs
On 2009-05-29, David Vanderschel <DJV5@Austin.RR.com> wrote:
> 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.
Not sure if this is what you're looking for. See requirments in beginning
of file. I linked to the cached page so you can see the pdf spec. I'm
still too green to even load a lisp file, so I'll let you decide. ;)
http://tinyurl.com/mpwbtt
nb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Opening a file from dired as OS would in Linux
[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
1 sibling, 0 replies; 3+ messages in thread
From: jpkotta @ 2009-05-30 18:25 UTC (permalink / raw
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Opening a file from dired as OS would in Linux
@ 2009-05-29 17:09 David Vanderschel
0 siblings, 0 replies; 3+ messages in thread
From: David Vanderschel @ 2009-05-29 17:09 UTC (permalink / raw
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-30 18:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2009-05-29 17:09 David Vanderschel
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.