Why would you want to do this? (You probably don’t :P)
In my case, I have a similar setup on a Linux box, and I like consistency, so …
- Get w3m. I used MacPorts, you can use
brew
, it’s really up to you. If you’re using the former, runsudo port install w3m
(assuming, of course, that you’ve installed MacPorts). -
Get
emacs-w3m
: RunM-x package-install w3m
(or select it fromM-x list-packages
)
Unfortunately, Emacs doesn’t seem to be very good with dependencies, so before installing w3m you’ll also have to manually install mew
(I found this in the package repository) and apel
(which I had to install the “old-fashioned” way — get this tarball, then run make
and sudo make install
… though if you find a better way please let me know!)
- Now you can run
M-x w3m
, and you should see something like this (after navigating to google.com:

Here are a few keyboard shortcuts to get you started:
C-t T
=> Open a new session
g
=> Open URL
C-c C-s
=> Browse open sessions
C-c C-c
=> Submit form
Tab
=> Next link
You can navigate either using C-p, C-n, C-a, C-e
or else (vim-style) using j, k, l, h
.
Enjoy!
Nice tut,
add this to your ~/.emacs for default inline images also – OSX
(setq w3m-default-display-inline-images t)
LikeLike