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

Re: idea: w3m-view-next-url, w3m-view-previous-url

jidanni@xxxxxxxxxxx writes:

> Say, how about making
> n do what TAB RET does,
> p do what Shift-TAB RET does,
> i.e., jump to and enter the next or previous link, all in one
> keystroke. You could call them w3m-view-next-url,
> w3m-view-previous-url. Arguments 5 would mean 5th URL away from here.
> 5 n == -5 p, etc.

I named them for you, just in case it does not make it into the
program.  Just dump these into your .emacs-w3m file.

(defun jidanni-w3m-next-anchor-and-view (arg)
  "Jumps to the next arg anchor and views it."
  (interactive "p")
  (w3m-next-anchor arg)

(defun jidanni-w3m-previous-anchor-and-view (arg)
  "Jumps to the previous arg anchor and views it."
  (interactive "p")
  (w3m-previous-anchor arg)

(define-key w3m-mode-map "n" 'jidanni-w3m-next-anchor-and-view)
(define-key w3m-mode-map "p" 'jidanni-w3m-previous-anchor-and-view)

Robert D. Crawford                                      rdc1x@xxxxxxxxxxx