File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,19 @@ Default:
214
214
(beacon . "BEACON"))
215
215
#+end_src
216
216
217
- A list of mappings for how state is displayed in modeline indicator.
217
+ A association list of state symbols to strings describing the state.
218
+ ** meow-indicator-face-alist
219
+ Default:
220
+
221
+ #+begin_src emacs-lisp
222
+ ((normal . meow-normal-indicator)
223
+ (motion . meow-motion-indicator)
224
+ (keypad . meow-keypad-indicator)
225
+ (insert . meow-insert-indicator)
226
+ (beacon . meow-beacon-indicator))
227
+ #+end_src
228
+
229
+ An association list of meow state symbols to indicator face symbols.
218
230
219
231
** meow-display-thing-help
220
232
Original file line number Diff line number Diff line change @@ -161,11 +161,13 @@ Looks up the state in meow-replace-state-name-list"
161
161
(defun meow--render-indicator ()
162
162
" Renders a short indicator based on the current state."
163
163
(when (bound-and-true-p meow-global-mode)
164
- (let ((state-name (meow--get-state-name (meow--current-state))))
164
+ (let* ((state (meow--current-state))
165
+ (state-name (meow--get-state-name state))
166
+ (indicator-face (alist-get state meow-indicator-face-alist)))
165
167
(if state-name
166
168
(propertize
167
169
(format " %s " state-name)
168
- 'face 'meow-insert- indicator )
170
+ 'face indicator-face )
169
171
" " ))))
170
172
171
173
(defun meow--update-indicator ()
Original file line number Diff line number Diff line change @@ -68,6 +68,14 @@ This will affect how selection is displayed."
68
68
:type '(alist :key-type (symbol :tag " Meow state" )
69
69
:key-value (string :tag " Indicator" )))
70
70
71
+ (defvar meow-indicator-face-alist
72
+ '((normal . meow-normal-indicator)
73
+ (motion . meow-motion-indicator)
74
+ (keypad . meow-keypad-indicator)
75
+ (insert . meow-insert-indicator)
76
+ (beacon . meow-beacon-indicator))
77
+ " Alist of meow states -> faces" )
78
+
71
79
(defcustom meow-select-on-change t
72
80
" Whether to activate region when exiting INSERT mode
73
81
after `meow-change' , `meow-change-char' and `meow-change-save' ."
You can’t perform that action at this time.
0 commit comments