In your initialization file, bind the Transient casual-man-tmenu
to your key binding of preference.
(keymap-set Man-mode-map "C-o" #'casual-man-tmenu)
casual-man-tmenu
deviates from the default bindings of Man-mode-map
as shown in the table below.
Default Binding | Casual Binding | Command | Notes |
---|---|---|---|
n | [ | Man-previous-section | Make consistent with Casual Dired and IBuffer behavior. |
p | ] | Man-next-section | Make consistent with Casual Dired and IBuffer behavior. |
k | K | Man-kill | Reserve k for navigation. |
k | previous-line | ||
j | next-line | ||
n | casual-lib-browser-forward-paragraph | Use to navigate paragraph forward. | |
p | casual-lib-browser-backward-paragraph | Use to navigate paragraph backward. |
The following keybindings are recommended to support consistent behavior between Man-mode
and casual-man-tmenu
.
(keymap-set Man-mode-map "n" #'casual-lib-browse-forward-paragraph) (keymap-set Man-mode-map "p" #'casual-lib-browse-backward-paragraph) (keymap-set Man-mode-map "[" #'Man-previous-section) (keymap-set Man-mode-map "]" #'Man-next-section) (keymap-set Man-mode-map "j" #'next-line) (keymap-set Man-mode-map "k" #'previous-line) (keymap-set Man-mode-map "K" #'Man-kill) (keymap-set Man-mode-map "o" #'casual-man-occur-options)