@@ -44,7 +44,7 @@ This will affect how selection is displayed."
44
44
'(markdown-mode org-mode)
45
45
" A list of major modes where after command expand should be disabled."
46
46
:group 'meow
47
- :type 'list )
47
+ :type '( repeat sexp) )
48
48
49
49
(defcustom meow-selection-command-fallback
50
50
'((meow-change . meow-change-char)
@@ -54,7 +54,8 @@ This will affect how selection is displayed."
54
54
(meow-beacon-change . meow-beacon-change-char))
55
55
" Fallback commands for selection commands when there is no available selection."
56
56
:group 'meow
57
- :type 'list )
57
+ :type '(alist :key-type (function :tag " Command" )
58
+ :key-value (function :tag " Fallback" )))
58
59
59
60
(defcustom meow-replace-state-name-list
60
61
'((normal . " NORMAL" )
@@ -64,7 +65,8 @@ This will affect how selection is displayed."
64
65
(beacon . " BEACON" ))
65
66
" A list of mappings for how to display state in indicator."
66
67
:group 'meow
67
- :type 'list )
68
+ :type '(alist :key-type (symbol :tag " Meow state" )
69
+ :key-value (string :tag " Indicator" )))
68
70
69
71
(defcustom meow-select-on-change t
70
72
" Whether to activate region when exiting INSERT mode
@@ -75,7 +77,7 @@ This will affect how selection is displayed."
75
77
(defcustom meow-expand-hint-remove-delay 1.0
76
78
" The delay before the position hint disappears."
77
79
:group 'meow
78
- :type 'integer )
80
+ :type 'number )
79
81
80
82
(defcustom meow-expand-hint-counts
81
83
'((word . 30 )
@@ -85,7 +87,8 @@ This will affect how selection is displayed."
85
87
(till . 30 ))
86
88
" The maximum numbers for expand hints of each type."
87
89
:group 'meow
88
- :type 'integer )
90
+ :type '(alist :key-type (symbol :tag " Hint type" )
91
+ :key-value (integer :tag " Value" )))
89
92
90
93
(defcustom meow-keypad-message t
91
94
" Whether to log keypad messages in minibuffer."
@@ -106,7 +109,8 @@ This will affect how selection is displayed."
106
109
(?. . sentence))
107
110
" Mapping from char to thing."
108
111
:group 'meow
109
- :type 'list )
112
+ :type '(alist :key-type (character :tag " Char" )
113
+ :key-value (symbol :tag " Thing" )))
110
114
111
115
(defcustom meow-thing-selection-directions
112
116
'((inner . forward)
@@ -115,7 +119,8 @@ This will affect how selection is displayed."
115
119
(end . forward))
116
120
" Selection directions for each thing command."
117
121
:group 'meow
118
- :type 'list )
122
+ :type '(alist :key-type (symbol :tag " Command" )
123
+ :key-value (symbol :tag " Direction" )))
119
124
120
125
(defcustom meow-display-thing-help t
121
126
" Whether to display the help prompt for meow-inner/bounds/begin/end-of-thing."
@@ -126,13 +131,13 @@ This will affect how selection is displayed."
126
131
0.5
127
132
" The delay in seconds before popup keybinding descriptions appear."
128
133
:group 'meow
129
- :type 'float )
134
+ :type 'number )
130
135
131
136
(defcustom meow-grab-fill-commands
132
137
'(meow-query-replace meow-query-replace-regexp)
133
138
" A list of commands that meow will auto fill with grabbed content."
134
139
:group 'meow
135
- :type 'list )
140
+ :type '( repeat function) )
136
141
137
142
(defcustom meow-visit-collect-min-length 1
138
143
" Minimal length when collecting symbols for `meow-visit' ."
@@ -195,7 +200,8 @@ This option will affect the color of position hint and fake region cursor."
195
200
The init-state can only be `motion' or `normal' ,
196
201
and `motion' have a higher priority."
197
202
:group 'meow
198
- :type 'list )
203
+ :type '(alist :key-type (sexp :tag " Major-mode" )
204
+ :value-type (symbol :tag " Initial state" )))
199
205
200
206
(defcustom meow-update-display-in-macro 'except-last-macro
201
207
" Whether update cursor and mode-line when executing kbd macro.
@@ -209,14 +215,14 @@ for no update only when executing last macro.
209
215
Set to `t' to always update.
210
216
"
211
217
:group 'meow
212
- :options '(t nil except-last-macro)
213
- :type 'symbol )
218
+ :type '(choice boolean
219
+ (const except-last-macro)) )
214
220
215
221
(defcustom meow-expand-selection-type 'select
216
222
" Whether to create transient selection for expand commands."
217
223
:group 'meow
218
- :options '(select expand )
219
- :type 'symbol )
224
+ :type '(choice (const select )
225
+ (const expand)) )
220
226
221
227
(defcustom meow-keypad-leader-dispatch nil
222
228
" The fallback dispatching in KEYPAD when there's no translation.
@@ -226,7 +232,9 @@ A keymap stands for a base keymap used for further translation.
226
232
A string stands for finding the keymap at a specified key binding.
227
233
Nil stands for taking leader keymap from `meow-keymap-alist' ."
228
234
:group 'meow
229
- :type '(choice string keymap nil ))
235
+ :type '(choice (string :tag " Keys" )
236
+ (variable :tag " Keymap" )
237
+ (const nil )))
230
238
231
239
(defcustom meow-keypad-meta-prefix ?m
232
240
" The prefix represent M- in KEYPAD state."
@@ -251,7 +259,8 @@ Nil stands for taking leader keymap from `meow-keymap-alist'."
251
259
it's corresponding value is appended to C- and the user is
252
260
prompted to finish the command."
253
261
:group 'meow
254
- :type 'alist )
262
+ :type '(alist :key-type (character :tag " From" )
263
+ :value-type (character :tag " To" )))
255
264
256
265
(defcustom meow-motion-remap-prefix " H-"
257
266
" The prefix string used when remapping an occupied key in MOTION state.
@@ -267,7 +276,7 @@ For examples:
267
276
268
277
Nil means find the command by key binding."
269
278
:group 'meow
270
- :type 'function )
279
+ :type '(choice function (const nil )) )
271
280
272
281
(defvar meow-state-mode-alist
273
282
'((normal . meow-normal-mode)
0 commit comments