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:59:12 +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="30453"; 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 08:00:19 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 1lhnLX-0007kE-Je for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 08:00:19 +0200 Original-Received: from localhost ([::1]:38586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhnLW-0008Gq-Jr for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 02:00:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhnL2-0008Gg-44 for help-gnu-emacs@gnu.org; Sat, 15 May 2021 01:59:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:40085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhnL0-0000wm-98 for help-gnu-emacs@gnu.org; Sat, 15 May 2021 01:59:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621058352; bh=VikbExtZFLaNm05amPwYFVXH9hYsp3Rxr4OyIMaQ938=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NuJqqoZE19n9Xm2tFQqpg+fJUqSrlQyQHkKEf00XyEotTGloK6dfNG5q1FuKAhoQP DG/OkswTqpemto3oIjZKV3jhu3bH6e3DqAEd/MPc6wFFw+Bxctry3FBK/EeK+jvHVK lectEPR8J6GVsfWqFNGZDnX7us41VunZEgVbj6sc= 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:59:12 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:mFFDX69qLiIAHMPfAJ5rkqtOfpC7G9jw+anNKP4wd79dWIqWzeo73U1SQfZBer7TR7ELj ZkG3qVcxOnyokCPS7J1BGiAsdnsKGUP6WpQkSL6Pg7rYuf5zQIWpjMi9avmBdIevo9n9LH3BQ+Fy XncSHv8rI6WeTJZzHVnM7x32pCQcn2aVeus6Zts+AZDKB890lLqOf4X5ETM4SaV70nPG7illkIGG 25cSgB22G1CefCeP4W00Vu/7Gh2B0ChzbpU4baODQTbxMWJP9a7/idE6+c0c+uX8RAADd6bc1636 qU= X-UI-Out-Filterresults: notjunk:1;V03:K0:484S8TD80vk=:3+qTHzfC07Q1CCP0MrS8yg 7N2gfU+B1SeSyHau8GAql32B7wIt85XTqY6fmDZF09t/TMH+UEF0IdFA0rXMlbCDmjQwX7MOY CQMr9eWPhIQyKmbu+RNgKExYwq2x6vmKTyQiGg0OXm+UWfBDHYixVfU5AVGYOvN8xspH0Mp3s LaI2KUlgkQKFO7gYRvBFAlSS8hzyT0Il6L9ywtBJmChwAmbtUtMOeV/r/wQ/Tv55I8ifL/0wP EP3BgVF2/zx+BerRVZ5khNdFaH/f/mNOYq1rHWPcOwPd0DGzpaOM0zFRLnTNeFKTVrtQXZZuL +6zgTGImRcvF+CeXA6iQWEeRnJ5IlT0V7U8yjrFxYEwJ9LIC9sQ75EkJoA/ny/RWGesnLCVi/ 5SFZkavHtzXPfzjYcMet00mn8djS7oPeffYVvOUjgDNW5/W1lRnneLcQPY6MXYcEtx5VlPfqv c6SANvKzo96Nz81nLaHslddrp9rqXtUoxWPCG+XVX5T4dLsjeGARkHoqz6KHNwGKIAcPiQxFd pqnMmP4kABixX82JOu5K6vtV35veRzPQIvp2qlcA5NGunJOCBUHy9GTkrMLar56oZJkUFqRgC G7MVGb7j8+mhMUT3lwsGYn4WRbArGRezt3nbDX8eqiJBynNc9jXYQx90okOpQ4P0mJIpG4DA0 Y0qNZsQyIxAlZ+tgs6r/Ahyb1bKoDN4nBZOKRrXFx79yY1+BBKAQzUST2uLp6vsLw56/snexN lV1Z3b0arbZwZbdJ/CWfCB2rWoaLMfzW1xeoZMDIM+tm0h8qDXBTR/OXdFnOiuT/bjlq/u8u Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:129782 Archived-At: Regarding keybindings, I like to have an alias keybinding for "H-o b" so I can also use "H-b", but only applicable to texinfo-mode. What can I use? > 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. >