Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Dired extension to run mac open files.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ben Hyde  
View profile  
 More options May 28 2004, 9:02 pm
From: Ben Hyde <bh...@pobox.com>
Date: Fri, 28 May 2004 21:02:45 -0400
Local: Fri, May 28 2004 9:02 pm
Subject: Dired extension to run mac open files.

This binds capital oh, or 'O', in dired to open as if double clicking
in the finder the file under the point.

;;; Dired enhancment.

(defun macosx-click2-file (filename)
   (call-process "open" nil 0 nil filename))

(defun dired-macosx-click2-file ()
   "In dired, open this file as if the user doubled clicked it in the
finder."
   (interactive "")
   (macosx-click2-file (dired-get-filename))
   (message "Opening..."))

(add-hook 'dired-load-hook
          '(lambda ()
             (define-key dired-mode-map "O" 'dired-macosx-click2-file)))


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google