help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing outline-minor-mode keybindings for texinfo files


From: michael-franzese
Subject: Re: Changing outline-minor-mode keybindings for texinfo files
Date: Sat, 15 May 2021 07:59:12 +0200

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.

What can I use?

> Sent: Saturday, May 15, 2021 at 8:10 AM
> 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 Fri, 14 May 2021 at 23:36, <michael-franzese@gmx.com> 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-<up>") #'outline-move-subtree-up)
> > >   (define-key texinfo-mode-map (kbd "H-<down>") 
> > > #'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.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]