专注各种脚本编程
Baidu
加入收藏夹
本站内容有下面分类知识,欢迎您的到来^_^
shell相关:指令篇 基础篇 脚本欣赏 编程实例 shell问问 shell视频教程 技巧篇 水平测试 E文资料 vi编辑器 高级Bash脚本编程指南
其他:mysql perl c语言 oracle
当前位置:| 主页>shell编辑器>

加个插件Emacs也能wget

百度收藏 QQ搜藏

1.下载软件包emacs-wget的压缩包:
可以去  http://www.filewatcher.com/m/emacs-wget-0.5.0.tar.gz.37074.0.0.html
2.解压文件到你的/Emacs/mylisp目录下:
$ tar -zxvf emacs-wget-0.5.0.tar.gz /usr/share/emacs/mylist
3.对~/.emacs文档进行编辑,也就是说加载wget插件,支持下载文件。
(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,输入下载地址,回车即OK啦。里面有个wget-buffer,是用来显示下载进度的,而下载信息是在message buffer那一栏显示的。
   -----emacs-wget相关快捷键-------
     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.
    ----- -----------

下面是使用emacs-wget下载的效果图:

上一篇:教你用Emacs在linux下看美女图片 下一篇:教你美化Emacs字体

power by soyo123 2007-2008