Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2012, 01:24 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default Installing Emacs-W3M for Emacs 24
1 Get the Development Version of Emacs-w3m
  • [code]$ cvs -d server:anonymous@cvs.namazu.org:/storage[/code[/cvsroot login
  • Hit <RET> when prompted for password.
  • Code:
    $ cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m


2 Build and Install
  • $ cd emacs-w3m
  • $ autoconf
  • $ ./configure
  • $ make
  • $ make install (as root)


3 Load
  • Add the following somewhere in your initialization file:
    Code:
    (add-to-list 'load-path "/usr/pbi/emacs-i386/share/emacs/site-lisp/w3m")(autoload 'w3m "w3m" "Interface for w3m on Emacs." t)(require 'w3m-load)


4 Useful Configuration Options
  • Add these to your init. file at your discretion:
Code:
 ;;Enable Cookies(setq w3m-use-cookies t);;Follow links in W3M(setq browse-url-browser-function 'w3m-browse-urlbrowse-url-new-window-flag t)(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)(global-set-key "\C-xm" 'browse-url-at-point)(autoload 'browse-url-interactive-arg "browse-url");;Set default download directory(let ((d "~/downloads/"))(setq w3m-default-save-directory(or(and(file-directory-p d)d)w3m-default-directory)));;W3M doesn't name buffers very intelligently. Let's fix that:(add-hook 'w3m-display-hook(lambda (url)(rename-buffer(format "*w3m: %s*" (or w3m-current-titlew3m-current-url)) t)))
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.