From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: VanL Newsgroups: gmane.emacs.help Subject: binding b-key to pageback behavior Date: Mon, 25 Nov 2019 12:39:31 +1100 Organization: President Trump 2020 Keep America Great =?utf-8?B?yZnJmTBA?= Ultimat Fighting Cybr Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="36251"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 02:39:57 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZ3M2-0009Bh-Fp for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 02:39:54 +0100 Original-Received: from localhost ([::1]:39652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZ3M0-0003j0-Vy for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Nov 2019 20:39:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41391) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZ3Lq-0003ir-Dw for help-gnu-emacs@gnu.org; Sun, 24 Nov 2019 20:39:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZ3Lp-0003xJ-Gp for help-gnu-emacs@gnu.org; Sun, 24 Nov 2019 20:39:42 -0500 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:48554 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iZ3Lp-0003vl-9d for help-gnu-emacs@gnu.org; Sun, 24 Nov 2019 20:39:41 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iZ3Ll-0008u8-B9 for help-gnu-emacs@gnu.org; Mon, 25 Nov 2019 02:39:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:ldCZRNMsthxZSKWVYavLn7hhBco= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121881 Archived-At: 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