File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -187,15 +187,17 @@ Recognized keywords:
187
187
:keymap - the keymap to use for the state
188
188
:lighter - the text to display in the mode line while state is active
189
189
:face - custom cursor face
190
- :form - one lisp form that will be run when the minor mode turns on AND off.
191
- If you want to hook into only the turn-on event, check whether
192
- (meow-NAME-SYM-mode) is true.
190
+
191
+ The last argument is an optional lisp form that will be run when the minor
192
+ mode turns on AND off. If you want to hook into only the turn-on event,
193
+ check whether (meow-NAME-SYM-mode) is true.
193
194
194
195
Example usage:
195
196
(meow-define-state mystate
196
197
\" My meow state\"
197
198
:lighter \" [M]\"
198
- :keymap 'my-keymap)
199
+ :keymap 'my-keymap
200
+ (message \" toggled state\" ))
199
201
200
202
Also see meow-register-state, which is used internally by this
201
203
function, if you want more control over defining your state. This
You can’t perform that action at this time.
0 commit comments