* mu4e-main: allow for non-alphanum shortcuts

This commit is contained in:
djcb 2014-01-12 13:07:36 +02:00
parent a4646ca502
commit a655640e7b
1 changed files with 4 additions and 4 deletions

View File

@ -70,14 +70,14 @@
(defun mu4e~main-action-str (str &optional func-or-shortcut)
"Highlight the first occurence of [..] in STR.
"Highlight the first occurence of [.] in STR.
If FUNC-OR-SHORTCUT is non-nil and if it is a function, call it
when STR is clicked (using RET or mouse-2); if FUNC-OR-SHORTCUT
is a string, execute the corresponding keyboard action when it is
when STR is clicked (using RET or mouse-2); if FUNC-OR-SHORTCUT is
a string, execute the corresponding keyboard action when it is
clicked."
(let ((newstr
(replace-regexp-in-string
"\\[\\(\\w+\\)\\]"
"\\[\\(\\.\\)\\]"
(lambda(m)
(format "[%s]"
(propertize (match-string 1 m) 'face 'mu4e-highlight-face)))