use Emacs dired as a general browser in windows

When browsing with Emacs dired on directories which usually contains some different files Emacs may or may not access smoothly(such as a pdf file), it is desirable to launch the Windows application from inside dired. For example, although Emacs can display pdf file with the help of doc-view-mode, it lacks the common convenience from Acrobat Reader.

After searching on for a little while, I found this wonderful package: w32-browser.el ( To implement this with dired, I used the following key-bindings in my .emacs:

;;; Hack dired to launch files with ‘z’ key and mouse clicking
(require ‘w32-browser)
(setq dired-load-hook
(lambda (&rest ignore)
(define-key dired-mode-map
“z” ‘dired-w32-browser)
(define-key dired-mode-map
[mouse-2] ‘dired-w32-browser)))


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s