[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Shortcuts?
From: |
Dryice Liu |
Subject: |
Re: [h-e-w] Shortcuts? |
Date: |
01 Mar 2002 21:54:05 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
I just learned the use of w32-shell-execute from the Emacs group and
the following code works fine with M$ *.lnk files. Note I'm using
dired-single.el.
,-------------------------
| ;; use [return] to visit file in default browser in dired mode
| (require 'dired)
| (require 'dired-single)
| (defun w32-browser ()
| "Browse a particular file/URL using the default browser"
| (if (file-directory-p (dired-get-filename))
| (joc-dired-single-buffer)
| (w32-shell-execute 1 (dired-replace-in-string
| "/" "\\"
| (dired-get-filename)))))
|
| (define-key dired-mode-map [return] (lambda ()
| (interactive)
| (w32-browser)))
`-------------------------
Dryice
Chuck Siska <address@hidden> wrote:
> chris --
>
> try this attached .el file. it lets you follow a M$ shortcut
> from dired to the target file or directory. it works on
> M$Wind98. if M$ hasn't been too squirrely, it will work for you.
> it binds 'F' (as opposed to the normal 'f') to do this.
> cheers.
>
> -- chuck
>
--
Dryice Liu
- Re: [h-e-w] Shortcuts?,
Dryice Liu <=