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 03:10:18 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36779"; 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 Fri May 14 22:10:56 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 1lhe9A-0009Ol-7F for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 22:10:56 +0200 Original-Received: from localhost ([::1]:34990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhe99-0008WS-72 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 16:10:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhe8o-0008W4-5C for help-gnu-emacs@gnu.org; Fri, 14 May 2021 16:10:34 -0400 Original-Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:46686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhe8k-0006VC-Co for help-gnu-emacs@gnu.org; Fri, 14 May 2021 16:10:33 -0400 Original-Received: by mail-ua1-x92d.google.com with SMTP id d30so40096uae.13 for ; Fri, 14 May 2021 13:10:30 -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; bh=2qIn5ankOqZRSfqPajEdv0O66fT/6pBpOvsdOjELzdQ=; b=i6xCi0HYXW0IzpiBpMhjy/z0rZ3WT/sCK57/3RUYaJhTp91hDzIlM9I+uFNQ4dhhXP MR9qNuD7Zv9zG/thFA8BHHzRfXg+yE3yt9Jw/DKvFN7BAI80oUGoWIFtkGoF3PSoyw5E 6z3CRgbVUjD62kb+O5nHNYGL9RNEFznw7A38TDBfV65DGSsNLQ4rQbl3mDzdxn0MTYuU hyPw3YY+4GsACWK1825eK3caFFrRqPFJEUyh2iGXQvPdgFRJQnGVVFPjhZFj01HXjgKU bcIDWRfJvsnGhA2SSVGBj90Oj5g7rmE43u+poBYoM1k2uKBv4VBLOCqxKwa5QCkH0MVr xI9g== 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; bh=2qIn5ankOqZRSfqPajEdv0O66fT/6pBpOvsdOjELzdQ=; b=WyoYft7j4Ks9GTatWw9jU0z4Uf+PcYEZMO002W1DAdaE+C9gTRRUgGt26G2rUJr38q sWoKuCz7CTnqpPm93UjDB4wUinEWHStBCa4xzdAXUIsx1lib9GPy5FgE0pUv2fnCx4E7 +f3apw4nZbBcNxE5aunTE8hK8CI9Vl6D+dRjFojs7vCzlCbxqljUyuWMKUZKlm6wjMyJ A8HMdbIhDt10K7527MxZRXtQ3LDTeQnotSTrevjshajBBKwqJ9sfeG8/R30Sqg4f3cny j9TpPEKP3suIHqYPjkU+ViY/iY39xtuDSzB9jBCdJcFpJfoMDGe/6sBUJO17ejcE3qz5 rTLQ== X-Gm-Message-State: AOAM531dwAyTHBvYuisIEQsx1s9NrinvOKGDJ+MvC5fXp2HaP/uu8t9T 7F92Mp14wszGmkTRBod2tPRcnf245k/Ya6tKZXg= X-Google-Smtp-Source: ABdhPJw7JMw06kTnbn6DcPyfGssrDMdn3DGFOLcD+LdzOTNk0Qd6HPbBX0uWnV5Mr1imi9moVG8GM0VR3si9KkuvU0g= X-Received: by 2002:ab0:6497:: with SMTP id p23mr44604376uam.86.1621023029412; Fri, 14 May 2021 13:10:29 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92d.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:129779 Archived-At: 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-subtree-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.