[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.
[1] https://dataswamp.org/~incal/emacs-init/scroll.el
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- binding b-key to pageback behavior, VanL, 2019/11/24
- Re: binding b-key to pageback behavior,
Emanuel Berg <=
- Re: binding b-key to pageback behavior, VanL, 2019/11/25
- Re: binding b-key to pageback behavior, Emanuel Berg, 2019/11/25
- Re: binding b-key to pageback behavior, VanL, 2019/11/27
- Re: binding b-key to pageback behavior, Emanuel Berg, 2019/11/27
- Re: binding b-key to pageback behavior, VanL, 2019/11/28
- Re: binding b-key to pageback behavior, Emanuel Berg, 2019/11/28