[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
binding b-key to pageback behavior
From: |
VanL |
Subject: |
binding b-key to pageback behavior |
Date: |
Mon, 25 Nov 2019 12:39:31 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) |
Hello.
Is there a general configuration to bind b-key to pageback?
What I do is the following where the b-key does not do what I would
like.
#+NAME: b-key-pageback-behavior
#+BEGIN_SRC emacs-lisp
(add-hook 'eww-mode-hook
(lambda ()
(define-key eww-mode-map (kbd "b")
'scroll-down-command)))
(add-hook 'view-mode-hook
(lambda ()
(define-key view-mode-map (kbd "b")
'View-scroll-page-backward)))
(add-hook 'help-mode-hook
(lambda ()
(define-key help-mode-map (kbd "b")
'scroll-down-command)))
(add-hook 'log-view-mode-hook
(lambda ()
(define-key log-view-mode-map (kbd "b")
'scroll-down-command)))
#+END_SRC
--
© 2019 VanL
gpg using EEF2 37E9 3840 0D5D 9183 251E 9830 384E 9683 B835
'If the bug bites,don't fight it.' -Nancy S. Steinhardt
- binding b-key to pageback behavior,
VanL <=
- Re: binding b-key to pageback behavior, Emanuel Berg, 2019/11/24
- 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