[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FEATURE WISH: optionally put URL intobookmarks
* TSUCHIYA Masatoshi:
>>this isn't about a bug, but i find myself regularly looking for
>>sitenames instead of page titles, because the majority of page
>>titles is meaningless (like "cgi" or "index.php" or "this fabulous
>>frobnicative inspeculum"), but the URL contains a recognizable spot.
>
> Could you try the following expression?
>
> (defadvice w3m-bookmark-add (before add-url-to-title activate compile)
> "Add URL to TITLE."
> (setq title (if title
> (concat title " (" url ")")
> url)))
i put this defadvice into `w3m-init-file', whose value is
"~/.emacs-w3m". do you think this is the right place? i did not want
to "require w3m" in my ~/.emacs.
and it works very well, exactly the way i wanted it. thanks! :)
clemens