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

Re: Evaluating forms in particular pages



Katsumi Yamaoka <yamaoka@xxxxxxx> writes:

> Well, though it might not measure up to your ideal, how about using
> the `w3m-fontify-after-hook'?

> (add-hook
>  'w3m-fontify-after-hook
>  (lambda nil
>    (when (and w3m-current-url
> 	      (string-match "\\`http://bugs\\.debian\\.org/";
> 			    w3m-current-url))
>      (outline-minor-mode 1)
>      (set (make-local-variable 'outline-level) (lambda () 1))
>      (set (make-local-variable 'outline-regexp)
> 	  "\\(Outstanding\\|Resolved\\) bugs --"))))

That's always a possibility, but I don't find it very elegant, nor
convenient -- it means I have to add one item per page on this hook.
I guess my needs are too specialized...

Thanks anyway,

-- 
Romain Francoise <romain@xxxxxxxxxxxxx> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter