From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KJUmNey2jWImKQEAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 06:56:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kJ7xNOy2jWL63QAAauVa8A (envelope-from ) for ; Wed, 25 May 2022 06:56:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D6262171B for ; Wed, 25 May 2022 06:56:11 +0200 (CEST) Received: from localhost ([::1]:34004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntj46-0003U8-DC for larch@yhetil.org; Wed, 25 May 2022 00:56:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntj3Q-0003Tl-7J for emacs-orgmode@gnu.org; Wed, 25 May 2022 00:55:29 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.217.159.240]:58596 helo=seashell-olwen.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntj3O-0006EA-Ce for emacs-orgmode@gnu.org; Wed, 25 May 2022 00:55:27 -0400 Received: from classic-glaistig.authn-relay.a.mail.umich.edu (ip-10-0-72-64.us-east-2.compute.internal [10.0.72.64]) by seashell-olwen.relay-egress.a.mail.umich.edu with ESMTPS id 628DB6B6.DA304.713B8BCD.11371; Wed, 25 May 2022 00:55:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1653454518; bh=iG7GOVT/n8e6VY5FHm3ufkSX+Lq1hGrcWM93cLPQWUs=; h=To:cc:From:Subject:In-reply-to:References:Date; b=Zomi/kmUa0LBkdeBtZHOj/VYgMar7lOOe6YhoYtVorBC30fdwzcssvR6stPs7jhf5 hMLNVqbajSxR1QMXmxOyiFA8+x03yWOUr5uaKvuyJ73q+dpMQ/OBCVvfdys0bI9m6Y BFkkeS5YNOVm4rGZnFor8fmT0bMzrAOT7oh5k+R+g+FH+9P8o8uSIVSP6dl4UpBYvT cY0/TZDf4+A/ucCZhfgi/K60vaYQpTaDCg7eiKrkakZ2dpihaUTFANm62KyCsyJdI9 +klYa/3tY37qeJ6GxpKCofzoJOFKzLw6Uk2TuQMUqXCYjbgm6IKvlciLx7EUPDdI+E cIZMkk7v4UEkg== Received: from localhost (097-086-128-062.res.spectrum.com [97.86.128.62]) by classic-glaistig.authn-relay.a.mail.umich.edu with ESMTPSA id 628DB6B5.12133955.22FFABC3.20056; Wed, 25 May 2022 00:55:17 -0400 To: Ypo cc: Org-mode From: Greg Minshall Subject: Re: Fwd: Help with my first elisp In-reply-to: <96d28d1e-38fb-5566-52e2-6fef48e9775e@gmail.com> References: <9776a3ba-8adc-88a6-ee09-3da03cc0c05b@serviplast.net> <96d28d1e-38fb-5566-52e2-6fef48e9775e@gmail.com> Comments: In-reply-to Ypo message dated "Tue, 24 May 2022 19:32:31 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.0.90 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2705473.1653454512.1@apollo2.minshall.org> Date: Tue, 24 May 2022 21:55:12 -0700 Message-ID: <2705474.1653454512@apollo2.minshall.org> Received-SPF: pass client-ip=18.217.159.240; envelope-from=minshall@umich.edu; helo=seashell-olwen.relay-egress.a.mail.umich.edu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653454572; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iG7GOVT/n8e6VY5FHm3ufkSX+Lq1hGrcWM93cLPQWUs=; b=Mw/bG/bYrOPwr50TuV02/77CGALJkbVnoyKN6F/CNZisyS3tbFl+U2YfUXmowRc9yseLqk jC/kii4841vI1vDkJksoAfB0CHwc/kJw7+7ON/8qFKJ9CGD2LyJla/fK1L158XOAMKjF0u rlUH8GEu+k/YUgksdpt3Eax5VPu0o5UspOJLUX9ypKR6JLUd+zZDL7/3HwUHlB/DrpE0a3 NTdM23GQI7GRYbsNT4b8sD5pkC+ZKuD/N/KaLSn7+s1jf+sB7Tth6DYhdWsuNCvIwdZlvl rDkpnWZGl0jq8wv7fh0g1dRVuy1Wv1J9vHBMwIxyGjAQVMxGy/T/+DXQCzDfAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653454572; a=rsa-sha256; cv=none; b=tq414kDNz2qTglTXjqBrpKV2svCydc7MO8DuTEYojJyn48jPPgRIYnUAsynyH+vejwS3eY BhPjm7MIzloUEg0bz0IfRSQHuizORV5MxeufSEhXW+OAd+mASCZMGlqfjme7qZC2uwopSm orlSDN5c7CSKh26ME3zXde8AOtixBZWQbj/NLqG9vIUEpKM+qUnv/l9KV59oaPahY7gHka 05aXIWqRwQjL+Jg/kuGoLqm1P29ikw6o0K1ihhuOCF5bZr3l7/iQ5nvQb158JX/r/9zHIj 0TPqrgyer2ArDQLXnvk1s/6vgjGuG9eyzcijpUhHK7ZvL5WiKu6uyg9H8d/oiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b="Zomi/kmU"; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b="Zomi/kmU"; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9D6262171B X-Spam-Score: -6.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: GaUpdUJcJNCV Ypo, > > but, using whatever the name of the logos-focus mode map, pointing at > > your functions? ... > I think "logos" doesn't have a map, is it possible? certainly possible (i don't use logos). in fact, ---- https://gitlab.com/protesilaos/logos/-/blob/main/logos.el ---- has the lines ---- ;; Logos does not define any key bindings. Try something like this: ;; ;; (let ((map global-map)) ;; (define-key map [remap narrow-to-region] #'logos-narrow-dwim) ;; (define-key map [remap forward-page] #'logos-forward-page-dwim) ;; (define-key map [remap backward-page] #'logos-backward-page-dwim)) ;; ;; By default those key bindings are: C-x n n, C-x ], C-x [. ---- which certainly implies no map. and, iiuc, *these* =define-key= lines are global, i.e., remain true whether you are in, or out of, logos mode. cheers, Greg