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: Jean Louis
Subject: Re: Changing outline-minor-mode keybindings for texinfo files
Date: Fri, 14 May 2021 12:51:47 +0300
User-agent: Mutt/2.0.6 (2021-03-06)

* michael-franzese@gmx.com <michael-franzese@gmx.com> [2021-05-14 10:29]:
> Have coded things this way.  Then I load a texi file and press "H-q",
> but I get "H-q is undefined".
> 
> (defun vmove-keytrigger ()
>    "Visualises outline and moves texinfo code."
> 
>    (let ( (map texinfo-mode-map) )
>      (define-key map (kbd "H-q") #'outline-hide-sublevels)
>      (define-key map (kbd "H-b") #'outline-hide-body)
>      (define-key map (kbd "H-<up>") #'outline-move-subtree-up)
>      (define-key map (kbd "H-<down>") #'outline-move-subtree-down)
>      ))

You define function but I without giving result out. You copy
texinfo-mode-map to map, and change the map, but after that all
changes are lost in such function that yields with nothing.



-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




reply via email to

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