all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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.