1.下载软件包emacs-wget:
2.解压至你的mylisp目录:
tar zxvf emacs-wget-0.4.2.tar.gz,例如解压至/usr/share/emacs/mylist.
3.编辑~/.emacs文档:
(add-to-list 'load-path "/usr/share/emacs/mylisp")
(autoload 'wget "wget" "wget interface for Emacs." t)
(autoload 'wget-web-page "wget" "wget interface to download whole web page." t)
(load "w3m-wget")
(autoload 'w3-wget "w3-wget" "wget interface for Emacs/W3." t)
4.运行emacs,M-x wget,输入地址,回车即可,然后可以看到wget-buffer,显示下载的进度,在message buffer中显示下载信息。
5.关闭下载:M-x wget-quit
6.在wget buffer中有一些快捷键:
In *wget* buffer, some keys are pre-defined. Key bindings are as
followings:
key Operation
----- -----------
d Kill the wget process under the cursor.
q Hide *wget* buffer (Wget process is still alive in background.)
Q Quit all wget processes and kill *wget* buffer.
g Revert *wget* buffer display.
i Update information for wget process under the cursor.
n To the next wget process.
p To the previous wget process.
----- -----------
7.当然在emacs-wget的压缩包里面的USAGE以及README可以帮助我们进行安装及使用,里面有我们需要的所有东西。
阅读(2467) | 评论(1) | 转发(0) |