* mu4e-main: fix the main menu regexps
This commit is contained in:
@ -77,7 +77,7 @@ a string, execute the corresponding keyboard action when it is
|
|||||||
clicked."
|
clicked."
|
||||||
(let ((newstr
|
(let ((newstr
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"\\[\\(.\\)\\]"
|
"\\[\\(..?\\)\\]"
|
||||||
(lambda(m)
|
(lambda(m)
|
||||||
(format "[%s]"
|
(format "[%s]"
|
||||||
(propertize (match-string 1 m) 'face 'mu4e-highlight-face)))
|
(propertize (match-string 1 m) 'face 'mu4e-highlight-face)))
|
||||||
@ -92,7 +92,7 @@ clicked."
|
|||||||
(define-key map [mouse-2] func)
|
(define-key map [mouse-2] func)
|
||||||
(define-key map (kbd "RET") func)
|
(define-key map (kbd "RET") func)
|
||||||
(put-text-property 0 (length newstr) 'keymap map newstr)
|
(put-text-property 0 (length newstr) 'keymap map newstr)
|
||||||
(put-text-property (string-match "\\w" newstr)
|
(put-text-property (string-match "\\[.+" newstr)
|
||||||
(- (length newstr) 1) 'mouse-face 'highlight newstr) newstr))
|
(- (length newstr) 1) 'mouse-face 'highlight newstr) newstr))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user