From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Changing outline-minor-mode keybindings for texinfo files Date: Sat, 15 May 2021 07:25:08 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Jean Louis To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 07:26:20 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhmoe-0009xs-Ek for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 07:26:20 +0200 Original-Received: from localhost ([::1]:32842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhmoc-0002k5-Li for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 01:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhmo7-0002jw-0W for help-gnu-emacs@gnu.org; Sat, 15 May 2021 01:25:47 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:55309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhmo3-000384-4d for help-gnu-emacs@gnu.org; Sat, 15 May 2021 01:25:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621056308; bh=qsn9St+vnsKPVq+FBQPo3evYRUzV9HT7d+RmmpZAsZw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=h/vETAocZ/QaXDn5JaPHqCz8KyUpPEgjGeOpyYxTtN1i+8mE9u9JaKHE0xLf7MKTN vIUkJCmxJxqkpCamlv040JJCOLFbUFYUcaHt6sP/SNqEb+BKKrIjq3vPK38+oZJDhY nLQIPhyQgWvUMuHm5Po3AgX9AnnQrrGdaXv8gXWU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs04.server.lan [172.19.170.170]) (via HTTP); Sat, 15 May 2021 07:25:08 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:p+GnaTQGhYDgCGctt6fIAOZZPpaC1hcBhIsviRVSf2GTZHKZryVoqxmy96bkYIv98ZD8L Ppvfo8hk7sNLvezfqCFHjz+JA/cs/UkmyfY7duDSFRFV/G7zjBpnQI3p0D2koRlB4XZVstQmmDgh ot9LPdYrbctyaUxwXSWLCWkdWcmgALs+E11TqV9fFyH9uEKyQePEHkhM34N2yfQulqI10dsSugW0 wTnsqaBfYJQ45Ah2bgNGTVFcQ7CGK72UqR0pKOwVmmbPOqJRb+L9UhQjoBFyRcNvRcPtCPOprvbe k8= X-UI-Out-Filterresults: notjunk:1;V03:K0:IEunLbfkxv8=:122sCiYckhqihuZOjZ+yhG SeIg1SmqANnk8b0o1mKHwJzBkWIJuycw7I+1gi3Ur9jwOjIOv4ZmIkS0PDWLQlSzxm6a7Y/xC UNtKtQFyKATFdVCciAu/0l7vJ8KtHXYQo01RTqfw4BgMeWntXt1qTxicy2rr3WCh5U9uAR3Bt iHiapBnmcQ7acjFzNwrvaUFUp1GUcjLKCeyppXUw+x70Pisj32SHZRXwyyWRRqE1JFaxhXHZN OrhVgLsB0hyBx1aEoYT6LbKdALMAMnvozYQUaWjDYEqaqBnltUBUEr35dCuOefLqPZYIePuan JpCuQaWvg39bbKMnFBE93HxpZ7bTfwvx5WfxqW6mUJrx6JrX6fCTJ7JYDP+RfE0TyLmGR98YQ HFfD5xydp9r4/lMhGOHnVuuykgtEDOOw7x6J0hFANrUmIMn3ipeqm5AdUhXMvg3hyH6jRUwXL kKiwzn/XrEx+RDGx+XKJm8dkwasPGEQ4vximhqzV+f1SXJcv7u+QAYGE3UECIGvSrLLNgw+Al H2RGMSTrONYP9l2s4psnVU4n6623o77hZbEfGYRzSZSSKFv2A6q1Qz7dYWwc16eJqYpGBtGuc QZYdIpNyXhogUMrr6NH1ApTPVLLxVlXXBqudbngp1wOyKVMwMcr8Kab+QOqN2OFeY16xRKKfH oNwbzAraLfi+c539nytlfOdBi9A3/bp75Msj7k3PSzKE+YrTqdB/2IBjdgcwDgJyzCvlPpI1A b4OZbZKcXsRulQTxSdGFy9bEQrGJ4W4zghwEtJ7Z+jLqW29Aaa1zMmsKXqXhVk5nn3vYJ2Ij Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129780 Archived-At: > Sent: Saturday, May 15, 2021 at 8:10 AM > From: "Yuri Khan" > To: michael-franzese@gmx.com > Cc: "Help Gnu Emacs" , "Jean Louis" > Subject: Re: Changing outline-minor-mode keybindings for texinfo files > > On Fri, 14 May 2021 at 23:36, wrote: > > > > > (add-hook 'texinfo-mode-hook 'vmove-keytrigger) > > > > (with-eval-after-load 'texinfo > > > (define-key texinfo-mode-map (kbd "H-q") #'outline-hide-sublevels) > > > (define-key texinfo-mode-map (kbd "H-b") #'outline-hide-body) > > > (define-key texinfo-mode-map (kbd "H-") #'outline-move-subtree= -up) > > > (define-key texinfo-mode-map (kbd "H-") #'outline-move-subtr= ee-down)) > > > Would your comments also mean that I remove the add-hook > > > > (add-hook 'texinfo-mode-hook 'vmove-keytrigger) > > Yes. > > > Can with-eval-after-load be included inside a function? > > Yes if you arrange for that function to be invoked some time before > you actually try pressing those keys while in texinfo-mode. I would need some implementation examples about how the function can be invoked as you describe. Currently I got the following (defun show-keytrigger () (with-eval-after-load 'texinfo (define-key texinfo-mode-map (kbd "H-s") #'outline-show-subtree) )) (add-hook 'texinfo-mode-hook 'show-keytrigger)