Define key in NORMAL state.
(meow-normal-define-key
;; bind command
'("a" . meow-append)
;; bind keymap
(cons "h" help-map)
;; bind key translation
'("x" . "C-x C-x")
...)
Like meow-normal-define-key
, but for leader keymap.
The default keybindings in leader keymap:
x
,c
,h
,m
andg
is bound tomeow-keypad-start
, which can start KEYPAD state.SPC
will execute the original command which bound toSPC
.
Use like meow-motion-overwrite-define-key
.
Meow will remap overwrited command to a keybinding with HYPER modifier.
For example, if you define j
as C-N
, the original command on j
will be bound to H-j
.
A helper function that puts an indicator at the beginning of mode-line. If you want customize mode-line by hand, see `meow-indicator`.
Example usage:
(meow-setup-indicator)
Return an indicator string that you can use in your `mode-line-format`.
Example usage:
(setq-default mode-line-format '((:eval (meow-indicator)) ...))
Register a thing which can be used for meow-beginning/end/inner/bounds-of-thing
. To bind it to a key, check variable meow-char-thing-table
.
Check function’s documentation for usage examples.
Default:
((fundamental-mode . normal)
(text-mode . normal)
(prog-mode . normal)
(conf-mode . normal)
(json-mode . normal)
...)
A list of rules to specify the initial Meow state for major mode.
Value should be a list, each item is (major-mode . init-state)
.
The init-state
can only be motion
or normal
.
By Default, Meow will use motion
for special modes, and normal
for other modes.
Default: (markdown-mode org-mode)
A list of major modes where expand feature should be disabled.
The expand feature use overlay
for display,
and it may not work well with texts with inconsistent sizes.
Default:
((word . 30)
(line . 30)
(block . 30)
(find . 30)
(till . 30))
The maximum numbers for expand hints of each type.
Default: 1.0
The delay before the position hint disappears.
Default:
((meow-change . meow-change-char)
(meow-kill . meow-C-k)
(meow-cancel-selection . keyboard-quit)
(meow-pop-selection . meow-pop-grab)
(meow-beacon-change . meow-beacon-change-char))
Fallback behaviours for selection-only commands when there’s no selection.
Default: t
Whether to log keypad messages in minibuffer.
Default:
((?r . round)
(?s . square)
(?c . curly)
(?g . string)
(?e . symbol)
(?w . window)
(?b . buffer)
(?p . paragraph)
(?l . line)
(?d . defun)
(?. . sentence))
Mapping from char to thing.
Used by meow-beginning-of-thing
, meow-end-of-thing
, meow-inner-of-thing
and meow-bounds-of-thing
.
Default:
((normal . "NORMAL")
(motion . "MOTION")
(keypad . "KEYPAD")
(insert . "INSERT")
(beacon . "BEACON"))
A list of mappings for how state is displayed in modeline indicator.
Default: t
Whether to display the help prompt for meow-inner/bounds/begin/end-of-thing
.
Default: 0.5
The delay in seconds before popup keybinding descriptions appear.
Default: (meow-query-replace meow-query-replace-regexp)
A list of commands that meow will auto fill with grabbed content.
Default: 1
Minimal length when collecting symbols for meow-visit
.
Default: t
Whether let meow-visit
display symbol regexps in a sanitized format.
Default: nil
Whether to use system clipboard. Not recommended.
Default: t
Whether to use KEYPAD when the result of executing kbd string is a keymap.
Default: ?m
The prefix represent M- in KEYPAD state.
Default: ?g
The prefix represent C-M- in KEYPAD state.
Default: 32
(SPC character)
The prefix represent no modifier in KEYPAD state.
Default: select
The type of selection activated by meow-expand-*
commands.
Default: “H-”
The prefix string used when remapping an occupied key in MOTION state.
For examples:
"C-x C-v" will remap the occupied j to C-x C-v j. "C-M-" will remap the occupied j to C-M-j.