help-gnu-emacs
[Top][All Lists]
Advanced

[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




reply via email to

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