aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2015-12-25 20:36:54 +0100
committerLars Ingebrigtsen2015-12-25 20:36:54 +0100
commit65c64058b817f169e356ea7825d173eb4c27fcf6 (patch)
tree75906e0c43aabf7a084b04bb9160c67a8b52291d
parentb563715a2db265517d5a77f165a42afa1e233fdd (diff)
downloademacs-65c64058b817f169e356ea7825d173eb4c27fcf6.tar.gz
emacs-65c64058b817f169e356ea7825d173eb4c27fcf6.zip
Add a command to view files in the browser to dired
* lisp/dired.el (dired-mode-map): Add the `W' command (bug#18810).
-rw-r--r--doc/emacs/dired.texi7
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/dired.el1
3 files changed, 12 insertions, 0 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index e7e49445b54..04cef3848db 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -1414,6 +1414,13 @@ names into arguments for other Emacs commands. It also displays what
1414it added to the kill ring, so you can use it to display the list of 1414it added to the kill ring, so you can use it to display the list of
1415currently marked files in the echo area. 1415currently marked files in the echo area.
1416 1416
1417@kindex W @r{(Dired)}
1418@findex browse-url-of-dired-file
1419 If you have an HTML file in the file listing, it can be useful to
1420view that file with a browser. The @kbd{W}
1421(@code{browse-url-of-dired-file}) command will use the standard
1422configured browser to view that file.
1423
1417@kindex ( @r{(Dired)} 1424@kindex ( @r{(Dired)}
1418@findex dired-hide-details-mode 1425@findex dired-hide-details-mode
1419@vindex dired-hide-details-hide-symlink-targets 1426@vindex dired-hide-details-hide-symlink-targets
diff --git a/etc/NEWS b/etc/NEWS
index 76fac3e03cd..edd81476c17 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -900,6 +900,10 @@ compress many marked files into a single named archive. The
900compression command is determined from the new 900compression command is determined from the new
901`dired-compress-files-alist' variable. 901`dired-compress-files-alist' variable.
902 902
903+++
904*** `W' is now bound to `browse-url-of-dired-file', and is useful for
905viewing HTML files and the like.
906
903** Obsolete packages 907** Obsolete packages
904 908
905--- 909---
diff --git a/lisp/dired.el b/lisp/dired.el
index ab6a820c29e..0a1b064fb20 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1538,6 +1538,7 @@ Do so according to the former subdir alist OLD-SUBDIR-ALIST."
1538 (define-key map "u" 'dired-unmark) 1538 (define-key map "u" 'dired-unmark)
1539 (define-key map "v" 'dired-view-file) 1539 (define-key map "v" 'dired-view-file)
1540 (define-key map "w" 'dired-copy-filename-as-kill) 1540 (define-key map "w" 'dired-copy-filename-as-kill)
1541 (define-key map "W" 'browse-url-of-dired-file)
1541 (define-key map "x" 'dired-do-flagged-delete) 1542 (define-key map "x" 'dired-do-flagged-delete)
1542 (define-key map "y" 'dired-show-file-type) 1543 (define-key map "y" 'dired-show-file-type)
1543 (define-key map "+" 'dired-create-directory) 1544 (define-key map "+" 'dired-create-directory)