w3m on Meadow2
w3m Home Page
EMACSでw3mを動かそう
(1)インストール
1:tar.gzを持ってきて展開
2:cd で展開したディレクトリへ移動
3:./configure (赤字の部分注意)
foo:~/w3m-0.4.1$ ./configure
CYGWIN_NT-5.0 1 3 22(0 /i686 at qarkw6woucgrago
%
% Hello foo. Let's start configuration process for w3m.
% Please answer some questions.
%
Which directory do you want to put the binary?
(default: /usr/local/bin)
Which directory do you want to put the support binary files?
(default: /usr/local/lib/w3m)
Which directory do you want to use local cgi?
(default: /usr/local/lib/w3m/cgi-bin)
Which directory do you want to put the helpfile?
(default: /usr/local/share/w3m)
Which directory do you want to put the manfile?
(default: /usr/local/man)
Which directory do you want to put the system wide w3m configuration file?
(default: /usr/local/etc/w3m)
Which language do you prefer?
1 .. Japanese (charset ISO-2022-JP, EUC-JP, Shift_JIS) (LANG=JA)
2 .. English (charset US_ASCII, ISO-8859-1, etc) (LANG=EN)
[12]? 1
You select Japanese (charset ISO-2022-JP, EUC-JP, Shift_JIS) LANG=JA
What is your display kanji code?
S .. Shift JIS (DISPLAY_CODE=S)
E .. EUC-JP (DISPLAY_CODE=E)
j .. JIS: ESC $@ - ESC (J (DISPLAY_CODE=j)
N .. JIS: ESC $B - ESC (J (DISPLAY_CODE=N)
n .. JIS: ESC $B - ESC (B (DISPLAY_CODE=n)
m .. JIS: ESC $@ - ESC (B (DISPLAY_CODE=m)
[SEjNnm]? S
You select Shift JIS DISPLAY_CODE=S
Use 2-byte character for table border, item, etc. [y]?
Use Lynx-like key binding as default [n]?
Let's do some configurations. Choose config option among the list.
1 - Baby model (no color, no menu, no mouse, no cookie, no SSL)
2 - Little model (color, menu, no mouse, no cookie, no SSL)
3 - Mouse model (color, menu, mouse, no cookie, no SSL)
4 - Cookie model (color, menu, mouse, cookie, no SSL)
5 - Monster model (with everything; you need openSSL library)
6 - Customize
Which? 4
Use color ESC sequence for kterm/pxvt .... yes
Use mouse (requires xterm/kterm/gpm/sysmouse) .... yes
Use popup menu .... yes
Use cookie .... yes
Use SSL (need OpenSSL library; Please see http://www.openssl.org/) .... no
Inline image support [n]?
ANSI color escape sequences support [n]?
Use Migemo (Roma-ji search; Please see http://migemo.namazu.org/) [n]?
External URI loader support [y]?
Use w3mmail.cgi [y]?
NNTP support [y]?
Gopher support [y]?
Use alarm support code [y]?
Use mark operation [y]?
Input your favorite editor program.
(Default: /usr/bin/vi) Input your favorite external browser program.
(Default: netscape) Input your favorite C-compiler.
(Default: gcc)
Input your favorite C flags.
(Default: -O)
Terminal library -ltermcap found at /lib,
and it seems to work.
Terminal library -ltermcap found at /usr/lib,
and it seems to work.
Which terminal library do you want to use? (type "none" if you do not need one)
(default: -ltermcap) /lib/libz found
/usr/include/zlib.h found
/usr/include/gc.h found
Input additional LD flags other than listed above, if any:
: Checking machine dependency.
Global mime.types not found; Hope /usr/local/lib/mime.types works.
You have ranlib.
You have mkdir -p.
You have perl.
You have long long
You have strtoll()
You don't have strtoq()
You don't have atoll()
You don't have atoq()
You have strcasecmp().
You don't have strcasestr().
You have strchr().
You have strerror().
You have sys_errlist[].
You have bcopy().
You have waitpid().
You have wait3().
You have strftime().
You have getcwd().
You have getwd().
You have symlink().
You have readlink().
You have lstat().
You have setenv().
You have putenv().
You have sigsetjmp().
You have srand48().
You have srandom().
You don't have getpassphrase().
You have chdir().
fclose() is declared.
pclose() is declared.
Your OS is CYGWIN; using termios
Your OS is CYGWIN; using dirent.h
signal handler is void handler(int).
You have alarm().
You have float.h.
You have sys/select.h.
You have setpgrp().
You don't have IPv6 support.
------------ Configuration done ------------
Current w3m version is 0.4.1.
Extracting config.h
config.h is created. See config.h for further configuration.
Configuration done. Just type "make".
qarkw6woucgrago:~/w3m-0.4.1$
4:make
5:make install
(2).emacsに下記の部分を追加
;;---------------------------------------------------------
;;w3mの設定
;;---------------------------------------------------------
(autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
(autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
(autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
(autoload 'w3m-weather "w3m-weather" "Display weather report." t)
(autoload 'w3m-antenna "w3m-antenna" "Report chenge of WEB sites." t)
(3)emacs-w3mのインストール
1:tar.gzを持ってきて展開
2:cd で展開したディレクトリへ移動
3:./configure
4:makeファイルを修正prefix = を
prefix = /cygdrive/c/Meadow2
datadir = ${prefix}/share を
datadir = ${prefix}/2.00b1
lispdir = $(datadir)/emacs/site-lisp/w3m を
lispdir = $(datadir)/site-lisp/w3m へ
ICONDIR = NONE を
ICONDIR = $(datadir)/etc/icons/w3m
EMACS = emacs を
EMACS = /cygdrive/X/usr/local/Meadow2/1.99a4/bin/Meadow へ
5:make
6:make install