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 13:36:53 +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="39348"; 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 08:38:34 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 1lhnwY-000A47-FJ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 08:38:34 +0200 Original-Received: from localhost ([::1]:46586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhnwX-00070d-I3 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 02:38:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhnv9-00070S-0W for help-gnu-emacs@gnu.org; Sat, 15 May 2021 02:37:07 -0400 Original-Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:46794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhnv7-0000Ag-IM for help-gnu-emacs@gnu.org; Sat, 15 May 2021 02:37:06 -0400 Original-Received: by mail-vs1-xe2e.google.com with SMTP id t6so602661vsp.13 for ; Fri, 14 May 2021 23:37:05 -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=O13oNw54Be7b4prqWakGdsT7+zPTMT0Rpe91coIQ9Q0=; b=o/eUttjW5ySG/p2KKFZFLF/m2VQZITPY+f0eMj1fcgrYvbLbnPO3o3GfTeVdfbNAbB 6DuW32vfAGZ2ty8z/UjBjB22mmUxame+xnWgoeCcOM81lsfUJSwofH49EEBwQVlZrFue eYyjQ0mIytoQ9SIYqhSndZbXaBZblzOOkCbPGU2uWj0p9tCQ4vWeHKx1dtFip/aE96YL mV/5kPA1tx+BBjEj/QAKDF3JPBdNmaqCNg00ZpNk5pxGlX9WOmq3R79JnjVLwjtlVRQ+ iTa7SMhd7DRAbiZPlmZBknIHhiwzOwsEkSkJ+xtuZGSloQsXCHJwFFlQ1rkFix/UvX1f 01bg== 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=O13oNw54Be7b4prqWakGdsT7+zPTMT0Rpe91coIQ9Q0=; b=LMUCQcJ0hKFGwf9URP5itiEqxfEUiL82pXQt17aO+tf2cB95z5lh1bJIZrKbNKul77 ehqopSnK/0IpbWRflKd9T09fSCxTgE8w7teplADMiz6PdmdKizOokVqU7tC9D49KGlqG LdBZ5eXTLqLQj0kr3sXH4/ScnsWCg6TFIk3VQEZBPcQ2Z8/6OzKF5Qs/HyYAXaHUYiYZ 9rlmExG+STF2VElv7q7HSmL0UjagZfM9SnNBMWy8h/KNYw5/KikS8dE4EaxxCIofg7xW 3vs0eSnLL0gCxm5iPoiraV1/+hazlw72IzaXTvHb214bo4c7CvsnIfgchrjsywL/Xrcz eiAg== X-Gm-Message-State: AOAM5326UrjAz/BriPOmNCJ685TQC7issP0Baa6/Zp9lpa1eHecgUc24 uqL9QhbR6oAZ9np9Oizo4/Ulh7KSsHJpvlR7/LQ= X-Google-Smtp-Source: ABdhPJyskE4kDaTWu7/7EIc8m4L/co54Vy+IoIvOBM2oxArFmOiGR3/nexdZh2I8e/DX4Qg+QoDF0m+CJBKuuW4cpGQ= X-Received: by 2002:a05:6102:34d:: with SMTP id e13mr2648867vsa.31.1621060624627; Fri, 14 May 2021 23:37:04 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2e.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:129787 Archived-At: 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. > I have been long time simply using global-set-key. But with my recent te= xinfo > work I have started to see how to set up things to apply only when in tex= info-mode. > > Am now using "H-o" to define outline commands, so that "H-o b" does outli= ne-hide-body. > Originally I had "H-b" for this but realised a clash with some bifurcatin= g functions > I use. > > Customarily, I call > > (global-set-key (kbd "H-n") (kbd "H-b")) > > But that is for global binding I think you can do everything with (define-key 'some-map =E2=80=A6) that yo= u can do with (global-set-key =E2=80=A6).