[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: idea: w3m-view-next-url, w3m-view-previous-url
- From: "Robert D. Crawford" <rdc1x@xxxxxxxxxxx>
- Date: Thu, 16 Oct 2008 20:06:50 -0500
- X-ml-name: emacs-w3m
- X-mail-count: 10404
- References: <878wsopcrk.fsf@xxxxxxxxxxx>
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)
(w3m-view-this-url))
(defun jidanni-w3m-previous-anchor-and-view (arg)
"Jumps to the previous arg anchor and views it."
(interactive "p")
(w3m-previous-anchor arg)
(w3m-view-this-url))
(define-key w3m-mode-map "n" 'jidanni-w3m-next-anchor-and-view)
(define-key w3m-mode-map "p" 'jidanni-w3m-previous-anchor-and-view)
rdc
--
Robert D. Crawford rdc1x@xxxxxxxxxxx