all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* binding b-key to pageback behavior
@ 2019-11-25  1:39 VanL
  2019-11-25  2:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 8+ messages in thread
From: VanL @ 2019-11-25  1:39 UTC (permalink / raw)
  To: help-gnu-emacs


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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-28  6:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25  1:39 binding b-key to pageback behavior VanL
2019-11-25  2:01 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.