[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: W3M customization



At Thu, 31 Oct 2002 14:17:51 +0100,
Felix E. Klee wrote:
> 
> 2. I want to have the title of a web page in its buffer name, 
>    eg. "*w3m Yahoo!*"

The buffer name "*w3m*" is hard-coded and changing it may cause some troubles.

But why do you need to change the buffer name?
If you just want to display the title of current page on emacs frame,
try following setting.

(add-hook 'w3m-mode-hook (lambda ()
			   (make-local-variable 'frame-title-format)
			   (setq frame-title-format
				 (list '(:eval
					 (or w3m-current-title
					     (concat "Emacs-w3m/"
						     emacs-w3m-version))))))
	  t)

Thanks,
--
Yuuichi Teranishi <teranisi@gohome.org>
GPG Public Key: http://www.gohome.org/gpg/teranisi.asc
"I just want to live while I'm alive..."