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 12:48:21 +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="38651"; 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 12:49:21 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 1lhrrD-0009r9-Dq for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 12:49:19 +0200 Original-Received: from localhost ([::1]:58092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhrrB-0001iP-Q5 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 06:49:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhrqr-0001i3-Tn for help-gnu-emacs@gnu.org; Sat, 15 May 2021 06:48:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:57269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhrqq-0000ZX-4I for help-gnu-emacs@gnu.org; Sat, 15 May 2021 06:48:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621075701; bh=AO/mSVQq4tCUkWXgoZirpXG4L+9qGmSRQHJ7p+LIsrY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HiAmOLfZ2eIxPKkl8/9roe1vdu3z06DADIp51znolEIqApJWXGem9zeloCHhenw7T QKtzqLKyn4Ea9EvKxYNJhKwRdsYxRE4Az1c4loVbyBR1c70z7CqkMhg2rJ13VVSfkl 6bmSmbMFO8jCw17hgs/dyDCAr8BR4XFWXzOJSh/Q= 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-bs16.server.lan [172.19.170.184]) (via HTTP); Sat, 15 May 2021 12:48:21 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:L51P5VvEF12RGB4P7gijw546M0y62Q+nUVv81hZAKcwmQDd8cXB8G8y9Tet/1+27tzoqW zKGXYIlkYHz5Z7GR+GlYuHKQT9LwkBu/npuy/7N+m8EqXcpS1yqh+Z9RW13tNoGEOOlS8tf+5fcU nAj0s28yMKT2Rs+CE+tNeKSPW65d+pkO7PTLGNy7ZmaZu6cTRNOyBeakLmhPe5WelHpG6e3odIGr jOfFQ4V0SwqoIh+e9T5ieoGg1A3UqIU9b9bL7LJcovb0O6oeqfo+Xf4y36bGrKvsEa2zUnay0AdM +0= X-UI-Out-Filterresults: notjunk:1;V03:K0:X/Gt1FcAz1A=:3IuOp91bAVLknhp4aMyykm Ki14ieHfSlNHuAVxuF0rscovEMXBGkAKWsBktMrEA+8Dhk+Uq5dUfb2pGlqs5hw3RbEIcIK2B LdZpnwaopj5KSxyRg4JYxGvLSM9QmHd/3AH01bmzM/XSqiEUQTYwssrwwIjen+codtButJEXM ySL3c6vgjdPcVQKD4BbDHMkNP8a802ss7/GFaKJpmvPcB5J0+KJ+SIPMpSderdrNSL5AYBz5n F0pDtAxBewc/Vk8/pQCAlPQ1OfcVl/eYlCa8PPfPHhx8i0+hhkAjV5jaJOLP4ke6jr701JcOy NsiFMv0rWnCHFQcmZfaKsNioUqj1qyAg3+iJa/fNIHjStlDuJfrJQ9eW9Mn2SREI87LVSmz3S 8tQ9iqy8EkWsJ65Hr95H+XOUwYFaQCLclbA0RNtPfm37Tp8v9X1Te4KncxzkzQtCqxbve14tX UZJb3xofvgxlfu/xlr9kl23gUnu3y7uhdIziC+q99ni2BkJMMh57mdsiBZWlQ9weiaUUsER6i 3dLa0qwgnyKfZoX+rbdibIEdGLxu09mw9OamS/4iRiZTTnHSfjW8RJCiR73Bbnoidnfk2Jf0V uTKK4LOLglB0iPBZlsdGylnYN9OS3HkzSaict3CGreVzJM8hBmPsAg3vY8DJWXMOf9HNFnqp1 pwriO+nCNFOfKWoR6xOQoYRuymunNm4JVDKUhwm8pkBCdJxiTp95/4Ys5dAMkEQNQ0o+9cUxL BH+2WPpRsZmFGXUUYgseA+9x18jGCc2mwsw0rt48Tln0MSrOIYU/InbsuY/N/OGwWWFRSmTP Received-SPF: pass client-ip=212.227.17.21; 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:129793 Archived-At: > Sent: Saturday, May 15, 2021 at 9:00 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 15:40, wrote: >=20 > > Yes, I am experimenting=2E > > > > I have this solution, > > > > (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 > > keybindings after texinfo has loaded=2E >=20 > That function will set the keybindings as soon as you invoke it=2E And > the syntax of =E2=80=98with-eval-after-load=E2=80=99 is different from t= hat of > =E2=80=98add-hook=E2=80=99=2E You need to pass a form to it, not a funct= ion symbol: >=20 > (with-eval-after-load 'texinfo > (hide-keytrigger)) Because it is an evaluation of hide-keytrigger=2E Things making sense now= =2E Thank you for the example code and explanation=2E =20 > When you do that, =E2=80=98with-eval-after-load=E2=80=99 will arrange yo= ur function to > be invoked after texinfo=2Eel loads=2E >=20 >