* lisp/dired.el (dired-do-eww): New command.
This commit is contained in:
parent
60f77c58f1
commit
e7da53a116
2 changed files with 8 additions and 0 deletions
3
etc/NEWS
3
etc/NEWS
|
@ -1061,6 +1061,9 @@ the following to your Init file:
|
|||
(keymap-set dired-mode-map "N" nil)
|
||||
(keymap-set dired-mode-map "I" nil))
|
||||
|
||||
*** New command 'dired-do-eww'.
|
||||
This command visits the file on the current line with EWW.
|
||||
|
||||
** Elisp
|
||||
|
||||
*** New command 'elisp-eval-buffer' (bound to 'C-c C-e').
|
||||
|
|
|
@ -4827,6 +4827,11 @@ Interactively with prefix argument, read FILE-NAME."
|
|||
(interactive nil dired-mode)
|
||||
(info (dired-get-file-for-visit)))
|
||||
|
||||
(defun dired-do-eww ()
|
||||
"In Dired, visit file in EWW."
|
||||
(interactive nil dired-mode)
|
||||
(eww-open-file (dired-get-file-for-visit)))
|
||||
|
||||
(provide 'dired)
|
||||
|
||||
(run-hooks 'dired-load-hook) ; for your customizations
|
||||
|
|
Loading…
Add table
Reference in a new issue