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 12:58:25 +0700

On Sat, 15 May 2021 at 12:25, <michael-franzese@gmx.com> wrote:

> I would need some implementation examples about how the function can be
> invoked as you describe.
>
> Currently I got the following
>
> (defun show-keytrigger ()
>    (with-eval-after-load 'texinfo
>       (define-key texinfo-mode-map
>          (kbd "H-s") #'outline-show-subtree) ))
>
> (add-hook 'texinfo-mode-hook 'show-keytrigger)

Again, you are using a hook that runs in each new texinfo-mode buffer,
but it is sufficient to define a key once per session. You can replace
the above with just this:

    (with-eval-after-load 'texinfo
      (define-key texinfo-mode-map
                  (kbd "H-s") #'outline-show-subtree))



reply via email to

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