emacs 23 with w3m

OK, the story is little complicated here.  Firstly, I found there is a mode designed for Evernote.  I do really like it, so I tried to run the mode on my Windows 7/Emacs 23 environment.  But unfortunately, it require w3m loaded first.  Then the nightmare starts.  After several days deep studying, now I know the way for Windows and Ubuntu now.  Will check on Mac later.

For ubuntu 10.10

  1. Install ubuntu 10.10 with default options
  2. Install the following packages
    • emacs 23
    • w3m
    • cvs
    • autoconf
  3. Get emacs-w3m mode by
    cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m
  4. Enter the folder then:
    sudo make install
  5. Then add the following to the .emacs
    (add-to-list ‘load-path “/usr/hsare/emacs/site-lisp/w3m”)
    (require ‘w3m-load)
    (require ‘w3m-e21)
    (provide ‘w3m-e23)
    (setq w3m-use-favicon nil)
    (setq w3m-command-arguments ‘(“-cookie” “-F”))
    (setq w3m-use-cookies t)
    (setq w3m-home-page http://www.yuleshow.com)
    (setq w3m-display-inline-image t)


For Windows 7

  1. Have Windows first
  2. Get patched emacs can be found here:
    select the patched version
    Which I downloaded is http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/ptch/Emacs-23-CvsP091103-EmacsW32-1.58.exe
  3. Install emacs and add emacs.exe location to the environment PATH
  4. Install cygwin and add bin location to the environment PATH
    Caution: cvs and w3m are optional, need manually checked
  5. cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m
  6. Put downloaded emacs-w3m folder into site-lisp folder
  7. Run
    emacs -batch -q -no-site-file -l w3mhack.el NONE -f w3mhack-nonunix-install
  8. .emacs
    (add-to-list ‘load-path “~/.emacs.d/site-lisp/emacs-w3m”)
    (require ‘w3m-load)
    (setq w3m-use-favicon nil)
    (setq w3m-command-arguments ‘(“-cookie” “-F”))
    (setq w3m-use-cookies t)
    (setq w3m-home-page “http://www.yuleshow.com”)



Leave a Reply

Your email address will not be published. Required fields are marked *