[Top][All Lists]

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

Re: binding b-key to pageback behavior

From: Emanuel Berg
Subject: Re: binding b-key to pageback behavior
Date: Mon, 25 Nov 2019 03:01:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

VanL wrote:

> Is there a general configuration to bind
> b-key to pageback?

Well, how would that work? In your code, it
isn't even the same function, it is
`scroll-down-command', then its
`View-scroll-page-backward'... And even if it
did, after evaluating it one wouldn't be able
to write this very message!

What you can do, is something like:

(defun set-vertical-keys (map)
  "Set MAP keys for moving point vertically."
  (define-key map "i" #'previous-line)
  (define-key map "k" #'next-line) ) ; [1]

and then, for example for the
gnus-summary-mode, do

(require 'gnus-sum)
(set-vertical-keys gnus-summary-mode-map)

Also, I'd recommend not doing this in hooks,
unless you have to.


underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]