From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Changing outline-minor-mode keybindings for texinfo files Date: Sat, 15 May 2021 16:00:14 +0700 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="10372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Jean Louis To: michael-franzese@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 11:01:38 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 1lhqB0-0002Wy-6w for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 11:01:38 +0200 Original-Received: from localhost ([::1]:50672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhqAz-00010T-6o for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 05:01:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhq9s-00010G-Jo for help-gnu-emacs@gnu.org; Sat, 15 May 2021 05:00:28 -0400 Original-Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:41789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhq9q-0000ur-Vw for help-gnu-emacs@gnu.org; Sat, 15 May 2021 05:00:28 -0400 Original-Received: by mail-ua1-x92f.google.com with SMTP id 105so467804uak.8 for ; Sat, 15 May 2021 02:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xI8XtXOiNKGj9kXWiccmiwNyw7rgrlgL7dYF5wQGqrs=; b=ex3rOqrYgSwci5fWPjvyUYq3KWcvwCkaVVlTGt+jjfMyEN0noAwcuZtszjLiU2CN80 PGZGJA3CrpZl7+HHrzCXryZPQ6+87GmWdT9lo3e41skBwv1G7JvZkRbnhSr1t8Cgaz+B ubDuC6SwE2TCv5DIq95B0RW4Ir0397nHfZjZa7h1WuSFp+etRYpWTXXQDhz6eQpU+zpb TWThPebyStfYonJJS60vdjglQT28rAbjbkE9k18FNSqHDqJdMIPSkQvh7ajsCigM+s5z UXQNs3sGXnN9oJNy21M4V4amirf+N/JFS1Y9R5UhU3HMeJ7W77ikYpMsA0OY3WQzwcJd 6xGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xI8XtXOiNKGj9kXWiccmiwNyw7rgrlgL7dYF5wQGqrs=; b=IgqAZRArhF5RzxwDWA8K7fv8V+ckietoxRz+3VR3VKy+wMDyxX7xaW7ot1exmy3v8E qrTjcdxNFeg5vmgMnWv5qoOV/pG3pw29u+jjgz+vq2BLM9F49cBUWVlwHWR57FnBESXT VFzCMueBPg8dNuZHjBHXK+9tJj/DTgGIAFRDrqdtu7PdLiE0U+TfPHs2Q7gvdguRIbBX 9px5xS1fKPur2gcRNGFf9Po0QdQNAWIVnfCLazpDfW6Lfu1wte99B+qn1e2OZUS5XDUo jKG4QNfAuBqvPFF6Rjlqkp0M+AlHHCdeSb6dCPUyg1j7zVxd5/t/sapd0G7CUAD9SItE TBUQ== X-Gm-Message-State: AOAM530cPZvcVeAeApofjNOTrg1dsrSJ3MY84TF2gjtlOAw6TljRAmht t7Upaol2cB7iVsFmFvj9CuI2ds3GeTQVrblNeNvXEZFi7Vnpcg== X-Google-Smtp-Source: ABdhPJzHgwxxMlTYntoHGDaUC0tzJa990/Cj75QA8nl2Rcav0ejYz3csAc/qzuISqsoMb1Jqk43ju9MLid8Xt6QAQzc= X-Received: by 2002:a9f:368f:: with SMTP id p15mr47067964uap.41.1621069225901; Sat, 15 May 2021 02:00:25 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::92f; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:129792 Archived-At: On Sat, 15 May 2021 at 15:40, wrote: > Yes, I am experimenting. > > 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. That function will set the keybindings as soon as you invoke it. And the syntax of =E2=80=98with-eval-after-load=E2=80=99 is different from that= of =E2=80=98add-hook=E2=80=99. You need to pass a form to it, not a function s= ymbol: (with-eval-after-load 'texinfo (hide-keytrigger)) When you do that, =E2=80=98with-eval-after-load=E2=80=99 will arrange your = function to be invoked after texinfo.el loads.