Difference between revisions of "Emacs-w3m"

From WikEmacs
Jump to navigation Jump to search
Line 11: Line 11:
  
 
Example keybindings config to make it feel more like conventional browser:
 
Example keybindings config to make it feel more like conventional browser:
 
+
<source lang="lisp">
 
(require 'w3m-load)
 
(require 'w3m-load)
 
(require 'mime-w3m)
 
(require 'mime-w3m)
Line 22: Line 22:
 
    (local-set-key [mouse-1] #'w3m-mouse-view-this-url)
 
    (local-set-key [mouse-1] #'w3m-mouse-view-this-url)
 
    (local-set-key [mouse-2] #'w3m-mouse-view-this-url-new-session)))
 
    (local-set-key [mouse-2] #'w3m-mouse-view-this-url-new-session)))
 +
</source>

Revision as of 16:30, 20 March 2014

Emacs-w3m
Description Web browser
Maintainer name of maintainer
Source http://emacs-w3m.namazu.org/
Part of Emacs yes

Emacs-w3m - the web browser inside emacs which uses external program (w3m) for rendering.

Example keybindings config to make it feel more like conventional browser:

(require 'w3m-load)
(require 'mime-w3m)
(add-hook 'w3m-mode-hook
	  (lambda ()
	    (setq w3m-new-session-in-background t)
	    (setq-local mouse-1-click-follows-link nil)
	    (local-set-key [backspace] #'w3m-view-previous-page)
	    (local-set-key (kbd "<C-tab>") #'w3m-next-buffer)
	    (local-set-key [mouse-1] #'w3m-mouse-view-this-url)
	    (local-set-key [mouse-2] #'w3m-mouse-view-this-url-new-session)))