[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23985: Emacs 25.0.94: FEATURE ADDITION: Texinfo environment movement
From: |
Clément Pit--Claudel |
Subject: |
bug#23985: Emacs 25.0.94: FEATURE ADDITION: Texinfo environment movement commands |
Date: |
Thu, 14 Jul 2016 18:52:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
Neat! What about C-c C-f/b/n/p insteaf of C-c C-c C-f/b/n/p, though? Org-mode
uses these, IIRC.
Clément.
On 2016-07-14 18:19, Robert Weiner wrote:
> The attached patch adds movement commands for texinfo-mode that move
> between the start and end of single-level environments (things that
> end with an @end line), e.g. @table.
>
> (define-key map "\C-c." 'texinfo-to-environment-bounds) -
> when within an environment, moves between the start and end lines
>
> (define-key map "\C-c\C-c\C-f" 'texinfo-next-environment-end) -
> from anywhere, moves to the next end line of an environment
>
> (define-key map "\C-c\C-c\C-b" 'texinfo-previous-environment-end)
> - from anywhere, moves to the previous end line of an environment
>
> (define-key map "\C-c\C-c\C-n" 'texinfo-next-environment-start) -
> from anywhere, moves to the next start line of an environment
>
> (define-key map "\C-c\C-c\C-p"
> 'texinfo-previous-environment-start) - from anywhere, moves to the
> previous start line of an environment
>
> See attached for the patch.
>
signature.asc
Description: OpenPGP digital signature