From: michael-franzese@gmx.com
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>, Jean Louis <bugs@gnu.support>
Subject: Changing outline-minor-mode keybindings for texinfo files
Date: Sat, 15 May 2021 10:40:17 +0200 [thread overview]
Message-ID: <trinity-d903f3c3-d32b-42d4-82f7-363051a489af-1621068016994@3c-app-mailcom-bs04> (raw)
In-Reply-To: <CAP_d_8Wr+hiCHAo_7PHbTv+Kec4-R3+AwDR_b+fJdue8O28X6g@mail.gmail.com>
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.
What do you think about that?
> Sent: Saturday, May 15, 2021 at 6:3
6 PM
> From: "Yuri Khan" <yuri.v.khan@gmail.com>
> To: michael-franzese@gmx.com
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>, "Jean Louis" <bugs@gnu.support>
> Subject: Re: Changing outline-minor-mode keybindings for texinfo files
>
> On Sat, 15 May 2021 at 13:21, <michael-franzese@gmx.com> 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 texinfo
> > work I have started to see how to set up things to apply only when in texinfo-mode.
> >
> > Am now using "H-o" to define outline commands, so that "H-o b" does outline-hide-body.
> > Originally I had "H-b" for this but realised a clash with some bifurcating 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 …) that you
> can do with (global-set-key …).
>
>
next prev parent reply other threads:[~2021-05-15 8:40 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 5:47 Changing outline-minor-mode keybindings for texinfo files michael-franzese
2021-05-14 7:28 ` michael-franzese
2021-05-14 9:51 ` Jean Louis
2021-05-14 10:04 ` michael-franzese
2021-05-14 12:24 ` michael-franzese
2021-05-14 13:31 ` michael-franzese
2021-05-14 14:03 ` Jean Louis
2021-05-14 16:00 ` Yuri Khan
2021-05-14 16:19 ` michael-franzese
2021-05-14 18:49 ` Jean Louis
2021-05-15 21:10 ` tomas
2021-05-14 16:20 ` Yuri Khan
2021-05-14 16:36 ` michael-franzese
2021-05-14 20:10 ` Yuri Khan
2021-05-15 5:25 ` michael-franzese
2021-05-15 5:58 ` Yuri Khan
2021-05-15 6:07 ` michael-franzese
2021-05-15 6:35 ` Yuri Khan
2021-05-15 5:59 ` michael-franzese
2021-05-15 6:02 ` Yuri Khan
2021-05-15 6:21 ` michael-franzese
2021-05-15 6:36 ` Yuri Khan
2021-05-15 8:40 ` michael-franzese [this message]
2021-05-15 9:00 ` Yuri Khan
2021-05-15 10:48 ` michael-franzese
2021-05-14 18:13 ` michael-franzese
2021-05-14 13:55 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-d903f3c3-d32b-42d4-82f7-363051a489af-1621068016994@3c-app-mailcom-bs04 \
--to=michael-franzese@gmx.com \
--cc=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=yuri.v.khan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).