From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: binding b-key to pageback behavior Date: Mon, 25 Nov 2019 16:17:19 +0100 Message-ID: <864kysasu8.fsf@zoho.eu> References: <86blt0d88p.fsf@zoho.eu> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="74648"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) 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 16:17:53 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 1iZG7b-000JFp-EZ for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 16:17:51 +0100 Original-Received: from localhost ([::1]:45184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZG7a-0004iV-7U for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 10:17:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58889) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZG7I-0004iM-AW for help-gnu-emacs@gnu.org; Mon, 25 Nov 2019 10:17:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZG7H-0000gh-3c for help-gnu-emacs@gnu.org; Mon, 25 Nov 2019 10:17:32 -0500 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:41350 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iZG7G-0000g5-T2 for help-gnu-emacs@gnu.org; Mon, 25 Nov 2019 10:17:31 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iZG7D-000IqT-Kx for help-gnu-emacs@gnu.org; Mon, 25 Nov 2019 16:17:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Cancel-Lock: sha1:LDu4ep2a62h8LnItRS0sl7tw/kk= 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:121890 Archived-At: VanL wrote: >>> Is there a general configuration to bind >>> b-key to pageback? >> >> Well, how would that work? In your code, it >> isn't even the same function, it is >> `scroll-down-command', then its >> `View-scroll-page-backward'... And even if >> it did, after evaluating it one wouldn't be >> able to write this very message! > > Those modes the customization is done to are > for reading only in the main. I thought by "general" you meant you looked for a way to do it without stating the specific modes and/or functions? If that's not what you meant, what is a general configuration to bind a specific key to a concept, which is implemented differently in different modes? > SPC behaves as expected there and I look for > the reverse binding to apply to b. Do `C-h k SPC' to find out what SPC does. Use this to figure out the name of the reverse function. Bind this to b: (require 'mode) (define-key mode-map "b" #'function-name) > Thanks for the suggestions. Are you able to > put a LICENSE on your code? > > For example, I keep a CC0 empty file and.. CC0 = Creative Commons 1.0? Well, I haven't read the small print... Is it enough if I put one file in the base directory of all my Elisp? -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal