Internals
Command properties
Evil defines command properties to store information about commands
[1], such as whether they should be repeated. A command
property is a :keyword
with an associated value, e.g.
:repeat nil
.
- (evil-add-command-properties COMMAND [KEY VAL]...)
Set each Evil command property KEY to its VAL for COMMAND. To replace existing properties, use
evil-set-command-properties
.
- (evil-set-command-properties COMMAND [PROPERTIES...])
Replace all of COMMAND’s properties with PROPERTIES. PROPERTIES should be a property list. This erases all previous properties; to only add properties, use
evil-set-command-property
.
- (evil-get-command-properties COMMAND)
Return the Evil command property list for COMMAND. See also
evil-get-command-property
.
- (evil-get-command-property COMMAND PROPERTY [DEFAULT])
Return the value of Evil PROPERTY of COMMAND. If the command does not have the property, return DEFAULT. See also
evil-get-command-properties
.
- (evil-define-command COMMAND (ARGS...) DOC [[KEY VALUE]...] BODY...)
Define a command COMMAND.
For setting repeat properties, use the following functions:
- (evil-declare-repeat COMMAND)
Declare COMMAND to be repeatable.
- (evil-declare-not-repeat COMMAND)
Declare COMMAND to be nonrepeatable.
- (evil-declare-change-repeat COMMAND)
Declare COMMAND to be repeatable by buffer changes rather than keystrokes.
Footnotes