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: Yuri Khan
Subject: Re: Changing outline-minor-mode keybindings for texinfo files
Date: Sat, 15 May 2021 13:36:53 +0700

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 …).



reply via email to

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