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: Changing outline-minor-mode keybindings for texinfo files Date: Sat, 15 May 2021 10:40:17 +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="40463"; 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 10:42:09 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 1lhps9-000ANY-JL for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 10:42:09 +0200 Original-Received: from localhost ([::1]:34818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhps8-0006Mh-J8 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 04:42:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhpqx-0006Ld-Tk for help-gnu-emacs@gnu.org; Sat, 15 May 2021 04:40:55 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:45853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhpqs-0004Yx-Jv for help-gnu-emacs@gnu.org; Sat, 15 May 2021 04:40:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621068017; bh=dBaXM+e7Gdz5jXq1q+88/aMgXjj5lZb80DeX07C7/Hw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QSOHlpCDdgf+tV+0XsYy0hri8p8UubOhllBoaUBRygEAnRmEExKhBHPphb+QgfO7j FjInCG9wakSOJzZ11ZujKAFHKqVpYkqs/Fg24splnMjCnTXycvwHpFrNF8kLAPoZy2 L6mWxMnsC83UOK+rrrmnbQVuiN44VuHQmLmys870= 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 10:40:17 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:DY0LSoEjSqBFgH3oHCVcrw3Fm9Oz2Bu8RmCqS5qH/dQeTnq0b5oVyrA+UOuxNLEMMIRdj dPUD/T4+UU2N1hBIby9dVrRsyQoPeXSW+bWE3zjvHVT8EDLaDJgww34/Yo3WSWEln+jz3PNJmXO/ EhSOh2ESnRXtqmhQqanUd8MjdGvxFcVOKtR87AWv7fPucaojYp6ApI0WPuekFdU1jEiB6kCIi7Nh 7kc6bTxwediT/J+CwUkhu9GNa5iZj5a6BB5g+VvBSZpUjg9TpUTF99N4FaqZw0mQ1Vp5PprYADJ7 hc= X-UI-Out-Filterresults: notjunk:1;V03:K0:MXmOWKfVsgU=:Hgz06h/hl8PI89S1NwiqPi W0Hjd4Z8rogxFHnBrVfHL1ml9kXoay9cCDdWQdz3eIaFkznRpt6BIJYM5rCGuhwhmgnaHzi6Y F6Q1uNYMH9JexmyTaVC/tMY/p4ZEXrsvv4LyEu2uOoQykf/sXE9pgdVVy6/rKZe2IVXsYHIgE iVIFQNyMv/U6W7RZfo0d0qY3F9t7Jxg+1HYwbcVwSYEWrBIs7757MORB+rJttOYlcm/Ls3aOv NSVrdtaay2FMiHkgMdvgyrU4y8GmVC/+kAspFhey+PF8KAQgTOdRZngVdpx5yAAm/wq0xz9Es bIDFLf6SZfTDtzD/eEZny+nukGmSCYcXLyNvsyOTBo/UtrIzCeMFhZ6rYms9Sc1/RFqt8s5MC SrCK3WJpQvg2d6DTuL5R5pSCTBt0In/pZIYFykPRtWMJGXn102IRshbCRutQhzoDURQr9Oduu bN17vDUa4bCz5+7KG8JYwoqs4CscEVIHqLhx2oJNQhIFCySIxYl1o960NLzypOua/ohhXqAaC D81sDZ7TmbWHfedsrXkD6pqKMt+f6pg9leD+YAFhoxh1kY7NgjagPo5ZwPiv6WyCdWErkYVQ3 tdiPKKewgKxULZ87DfORMbkQ3y1XqlBHeWE1e4Fc3wiSMu1oePcVzyu6ELK7C1T0b+SySbLL0 gCexEZHTEFoLwDt/eTUIw0f3rnyMxmwZZ8jMVtlBTq49pYMeI/gQnSn14bgiWToMkaRZ5Xqdh mwdBzK0qtuzByZGjKrqMsE+WBTe7P6dOzxGoYenXEUTQ2S2JNUArrHPi50QWUMoTtFalzVKf 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:129790 Archived-At: Yes, I am experimenting=2E I have this solution,=20 (defun hide-keytrigger (define-key texinfo-mode-map (kbd "H-o b") #'outline-hide-body) (define-key texinfo-mode-map (kbd "H-o q") #'outline-hide-sublevels) ) (with-eval-after-load 'texinfo #'hide-keytrigger) This way I hope that the function hide-keytrigger would set the=20 keybindings after texinfo has loaded=2E What do you think about that? > Sent: Saturday, May 15, 2021 at 6:3 6 PM > From: "Yuri Khan" > To: michael-franzese@gmx=2Ecom > Cc: "Help Gnu Emacs" , "Jean Louis" > Subject: Re: Changing outline-minor-mode keybindings for texinfo files > > On Sat, 15 May 2021 at 13:21, wrote: > > > > 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=2E >=20 > > I have been long time simply using global-set-key=2E But with my rece= nt texinfo > > work I have started to see how to set up things to apply only when in = texinfo-mode=2E > > > > Am now using "H-o" to define outline commands, so that "H-o b" does ou= tline-hide-body=2E > > Originally I had "H-b" for this but realised a clash with some bifurca= ting functions > > I use=2E > > > > Customarily, I call > > > > (global-set-key (kbd "H-n") (kbd "H-b")) > > > > But that is for global binding >=20 > I think you can do everything with (define-key 'some-map =E2=80=A6) that= you > can do with (global-set-key =E2=80=A6)=2E >=20 >