随笔 - 60, 文章 - 0, 评论 - 197, 引用 - 0
数据加载中……

Emacs w3m

Emacs w3m 配置
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;              w3m mode
;;;
;;
(add-to-list 'load-path (concat path-prefix "w3m"))
(setq w3m-icon-directory (concat path-prefix "w3m/icons"))
(require 'w3m)

(setq w3m-use-form t)
(setq w3m-tab-width 8)
(setq w3m-use-cookies t)
(setq w3m-use-toolbar t)
(setq w3m-use-mule-ucs t)
(setq w3m-fill-column 120)
(setq w3m-default-display-inline-image t)
(setq w3m-default-toggle-inline-images t)
(setq w3m-home-page "http://www.gogole.com")
(setq browse-url-browser-function 'w3m-browse-url)
(setq w3m-view-this-url-new-session-in-background t)

;; Make this comment if you have no a proper proxy
(setq w3m-command-arguments-alist
      '( ;; Don't use any additional options to visit local web pages.
    ("^http://\\([^/]*\\.\\)*your_internal_website_name\\(/\\|$\\)"
     "-no-proxy")
    ;; Use the proxy server to visit any foreign urls.
    (""
     "-o" "http_proxy=http://your_proxy:80/")))


Emacs-w3m 常用命令
g (w3m-goto-url)
c (w3m-print-current-url)
R (w3m-reload-this-page)
SPC Scroll downwards
DEL Scroll upwards
> (w3m-scroll-left)
< (w3m-scroll-right)
. Shift to the left
, Shift to the right
M-l (w3m-horizontal-recenter)
TAB Move the point to the next link
M-TAB Move the point to the previous anchor.
] Move the point to the next form.
[ Move the point to the previous form.
} Move the point to the next image.
{ Move the point to the previous image
B (w3m-view-previous-page)
N (w3m-view-next-page).
H (w3m-gohome)
^ parent directory of the page currently displayed
q (w3m-close-window).
Q (w3m-quit)
T (w3m-toggle-inline-images)
I (w3m-view-image)
M-i (w3m-save-image)
M-[ (w3m-zoom-out-image)
M-] (w3m-zoom-in-image)
s (w3m-history)
a (w3m-bookmark-add-current-url)
M-a (w3m-bookmark-add-this-url)
v (w3m-bookmark-view)
C-k (w3m-bookmark-kill-entry)
E (w3m-bookmark-edit)
C-_ (w3m-bookmark-undo)
C-c C-t (w3m-copy-buffer)
C-c C-w (w3m-delete-buffer)
C-c M-w (w3m-delete-other-buffers)
C-c C-p (w3m-previous-buffer)
C-c C-n (w3m-next-buffer)
C-c C-a (w3m-switch-buffer)
C-c C-s (w3m-select-buffer)
d (w3m-download-this-url)
C-c C-c (w3m-submit-form)
C-c C-q (w3m-form- -keymap)
D (w3m-dtree)


posted on 2008-06-08 15:39 Normandy 阅读(2320) 评论(3)  编辑 收藏 引用 所属分类: Editor

评论

# re: Emacs w3m  回复  更多评论   

为什么emacs不能在新tab中打开当前光标所在到链接
有办法解决吗
2012-02-17 15:49 | hyphen

# re: Emacs w3m  回复  更多评论   

@hyphen
将光标放在链接上,然后
M-x w3m-goto-new-session-url
就好了。
2012-09-06 14:25 | xiaopeng

# re: Emacs w3m  回复  更多评论   

@hyphen
将光标放在链接上,然后
w3m-view-this-url-new-session
就好了,上面写的不对(M-x w3m-goto-new-session-url)。
不好意思。
2012-09-06 14:35 | xiaopeng

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理