[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changing outline-minor-mode keybindings for texinfo files
From: |
michael-franzese |
Subject: |
Changing outline-minor-mode keybindings for texinfo files |
Date: |
Sat, 15 May 2021 10:40:17 +0200 |
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 …).
>
>
- Changing outline-minor-mode keybindings for texinfo files, (continued)
- Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/14
- Re: Changing outline-minor-mode keybindings for texinfo files, Yuri Khan, 2021/05/14
- Re: Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/15
- Re: Changing outline-minor-mode keybindings for texinfo files, Yuri Khan, 2021/05/15
- Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/15
- Re: Changing outline-minor-mode keybindings for texinfo files, Yuri Khan, 2021/05/15
- Re: Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/15
- Re: Changing outline-minor-mode keybindings for texinfo files, Yuri Khan, 2021/05/15
- Re: Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/15
- Re: Changing outline-minor-mode keybindings for texinfo files, Yuri Khan, 2021/05/15
- Changing outline-minor-mode keybindings for texinfo files,
michael-franzese <=
- Re: Changing outline-minor-mode keybindings for texinfo files, Yuri Khan, 2021/05/15
- Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/15
- Changing outline-minor-mode keybindings for texinfo files, michael-franzese, 2021/05/14
- Re: Changing outline-minor-mode keybindings for texinfo files, Jean Louis, 2021/05/14