[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] bind n and p in eww bookmark and histories
From: |
Lars Ingebrigtsen |
Subject: |
Re: [PATCH] bind n and p in eww bookmark and histories |
Date: |
Thu, 10 Nov 2016 19:12:28 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Mark Oteiza <address@hidden> writes:
> I'd like to add these bindings. Not sure if there is a plan for n and p
> to do something else in eww's bookmark or history, judging from the
> comments nixed below.
>
> diff --git a/lisp/net/eww.el b/lisp/net/eww.el
> index 7672bf0..1732682 100644
> --- a/lisp/net/eww.el
> +++ b/lisp/net/eww.el
> @@ -1736,6 +1736,8 @@ eww-bookmark-mode-map
> (define-key map [(control k)] 'eww-bookmark-kill)
> (define-key map [(control y)] 'eww-bookmark-yank)
> (define-key map "\r" 'eww-bookmark-browse)
> + (define-key map "n" 'next-line)
> + (define-key map "p" 'previous-line)
>
> (easy-menu-define nil map
> "Menu for `eww-bookmark-mode-map'."
> @@ -1818,8 +1820,8 @@ eww-history-browse
> (defvar eww-history-mode-map
> (let ((map (make-sparse-keymap)))
> (define-key map "\r" 'eww-history-browse)
> -;; (define-key map "n" 'next-error-no-select)
> -;; (define-key map "p" 'previous-error-no-select)
> + (define-key map "n" 'next-line)
> + (define-key map "p" 'previous-line)
I'm not sure taking keystrokes we may well want to use later for cursor
movements makes all that much sense. People are perfectly capable to
move the point around without mode-specific bindings, I think. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no