Skip to content

Improve alignment of bindings in emaps-describe-keymap-bindings #6

@GuiltyDolphin

Description

@GuiltyDolphin

At the moment, running emaps-describe-keymap-bindings, doesn't produce great alignment.

Example

Buffer from (emaps-describe-keymap-bindings 'Info-edit-mode-map):

Describing bindings for 'Info-edit-mode-map
key             binding
---             -------

C-c         Prefix Command
ESC         Prefix Command

C-c C-c     Info-cease-edit

<menu-bar> <text>           Prefix Command

C-M-i       ispell-complete-word

<menu-bar> <text> <center-line>
                                center-line
<menu-bar> <text> <center-paragraph>
                                center-paragraph
<menu-bar> <text> <center-region>
                                center-region
<menu-bar> <text> <paragraph-indent-minor-mode>
                                paragraph-indent-minor-mode
<menu-bar> <text> <toggle-text-mode-auto-fill>
                                toggle-text-mode-auto-fill

[back]

I think the main issues are:

  • <menu-bar> <text> Prefix Command
    • Doesn't appear to be aligning with anything else
  • C-M-i ispell-complete-word
    • Appears after <menu-bar> <text> Prefix Command
      • Though it is aligned with the non-<menu-bar> items, the break in format makes the alignment feel off

I think it is sensible to keep line breaking at 72 characters.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions