From cd5f7302224e3b871cba3001cc60d557d89946ce Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 12 Dec 2012 20:04:23 +0100 Subject: [PATCH] mu4e-maildir-shortcuts: define custom type --- mu4e/mu4e-utils.el | 4 ++-- mu4e/mu4e-vars.el | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index 1f9627d5..1cbf336c 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -280,8 +280,8 @@ the list of maildirs will not change until you restart mu4e." "Ask the user for a shortcut (using PROMPT) as defined in `mu4e-maildir-shortcuts', then return the corresponding folder name. If the special shortcut 'o' (for _o_ther) is used, or if -`mu4e-maildir-shortcuts is not defined, let user choose from all -maildirs under `mu4e-maildir." +`mu4e-maildir-shortcuts' is not defined, let user choose from all +maildirs under `mu4e-maildir'." (let ((prompt (mu4e-format "%s" prompt))) (if (not mu4e-maildir-shortcuts) (ido-completing-read prompt (mu4e-get-maildirs)) diff --git a/mu4e/mu4e-vars.el b/mu4e/mu4e-vars.el index eb1d2080..5cddcdba 100644 --- a/mu4e/mu4e-vars.el +++ b/mu4e/mu4e-vars.el @@ -293,15 +293,17 @@ re-edited, and is nil otherwise." (defcustom mu4e-maildir-shortcuts nil - "A list of maildir shortcuts to enable quickly going to the -particular for, or quickly moving messages towards them (i.e., -archiving or refiling). The list contains elements of the form -\(maildir . shortcut), where MAILDIR is a maildir (such as -\"/archive/\"), and shortcut a single shortcut character. With -this, in the header buffer and view buffer you can execute -`mu4e-mark-for-move-quick' (or 'm', by default) or -`mu4e-jump-to-maildir' (or 'j', by default), followed by the -designated shortcut character for the maildir.") + "A list of maildir shortcuts. +This enables quickly going to the particular for, or quickly +moving messages towards them (i.e., archiving or refiling). The +list contains elements of the form (maildir . shortcut), where +MAILDIR is a maildir (such as \"/archive/\"), and shortcut a +single shortcut character. With this, in the header buffer and +view buffer you can execute `mu4e-mark-for-move-quick' (or 'm', +by default) or `mu4e-jump-to-maildir' (or 'j', by default), +followed by the designated shortcut character for the maildir." + :type '(repeat (cons (string :tag "Maildir") character)) + :group 'mu4e-folders) ;; Faces (defgroup mu4e-faces nil