From: VanL <van@scratch.space>
To: help-gnu-emacs@gnu.org
Subject: binding b-key to pageback behavior
Date: Mon, 25 Nov 2019 12:39:31 +1100 [thread overview]
Message-ID: <m28so4wx7w.fsf@vogel.localnet> (raw)
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
next reply other threads:[~2019-11-25 1:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 1:39 VanL [this message]
2019-11-25 2:01 ` binding b-key to pageback behavior Emanuel Berg via Users list for the GNU Emacs text editor
2019-11-25 11:02 ` VanL
2019-11-25 15:17 ` Emanuel Berg via Users list for the GNU Emacs text editor
2019-11-27 11:45 ` VanL
2019-11-27 23:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2019-11-28 5:50 ` VanL
2019-11-28 6:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28so4wx7w.fsf@vogel.localnet \
--to=van@scratch.space \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).