diff options
| author | Lars Ingebrigtsen | 2015-12-25 20:36:54 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2015-12-25 20:36:54 +0100 |
| commit | 65c64058b817f169e356ea7825d173eb4c27fcf6 (patch) | |
| tree | 75906e0c43aabf7a084b04bb9160c67a8b52291d | |
| parent | b563715a2db265517d5a77f165a42afa1e233fdd (diff) | |
| download | emacs-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.texi | 7 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/dired.el | 1 |
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 | |||
| 1414 | it added to the kill ring, so you can use it to display the list of | 1414 | it added to the kill ring, so you can use it to display the list of |
| 1415 | currently marked files in the echo area. | 1415 | currently 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 | ||
| 1420 | view that file with a browser. The @kbd{W} | ||
| 1421 | (@code{browse-url-of-dired-file}) command will use the standard | ||
| 1422 | configured 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 |
| @@ -900,6 +900,10 @@ compress many marked files into a single named archive. The | |||
| 900 | compression command is determined from the new | 900 | compression 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 | ||
| 905 | viewing 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) |