fix defcustom types and improve their doc-strings

This commit is contained in:
Jonas Bernoulli 2012-11-05 17:16:46 +01:00
parent 71734f2cb7
commit ec106e38bf
4 changed files with 32 additions and 29 deletions

View File

@ -90,17 +90,19 @@
:group 'mu4e) :group 'mu4e)
(defcustom mu4e-sent-messages-behavior 'sent (defcustom mu4e-sent-messages-behavior 'sent
"Determines what mu4e does with sent messages - this is a symbol "Determines what mu4e does with sent messages.
which can be either:
* 'sent --> move the sent message to the Sent-folder (`mu4e-sent-folder') This is one of the symbols:
* 'trash --> move the sent message to the Trash-folder (`mu4e-trash-folder') * `sent' move the sent message to the Sent-folder (`mu4e-sent-folder')
* 'delete --> delete the sent message. * `trash' move the sent message to the Trash-folder (`mu4e-trash-folder')
* `delete' delete the sent message.
Note, when using GMail/IMAP, you should set this to either 'trash Note, when using GMail/IMAP, you should set this to either 'trash
or 'delete, since GMail already takes care of keeping copies in the or 'delete, since GMail already takes care of keeping copies in the
sent folder." sent folder."
:type 'symbol :type '(choice (const sent :tag "move message to mu4e-sent-folder")
(const sent :tag "move message to mu4e-trash-folder")
(const sent :tag "delete message"))
:safe 'symbolp :safe 'symbolp
:group 'mu4e-compose) :group 'mu4e-compose)

View File

@ -31,13 +31,15 @@
(require 'mu4e-message) (require 'mu4e-message)
(defcustom mu4e-headers-leave-behavior 'ask (defcustom mu4e-headers-leave-behavior 'ask
"What to do when user leaves the headers view (e.g. quits, "What to do when user leaves the headers view.
refreshes or does a new search). Value is one of the following That is when he e.g. quits, refreshes or does a new search.
symbols: Value is one of the following symbols:
- ask (ask the user whether to ignore the marks) - `ask' ask user whether to ignore the marks
- apply (automatically apply the marks before doing anything else) - `apply' automatically apply the marks before doing anything else
- ignore (automatically ignore the marks without asking)." - `ignore' automatically ignore the marks without asking"
:type 'symbol :type '(choice (const ask :tag "ask user whether to ignore marks")
(const apply :tag "apply marks without asking")
(const ignore :tag "ignore marks without asking"))
:group 'mu4e-headers) :group 'mu4e-headers)
(defvar mu4e-headers-show-target t (defvar mu4e-headers-show-target t

View File

@ -35,10 +35,9 @@
(defcustom mu4e-mu-home nil (defcustom mu4e-mu-home nil
"Location of the mu homedir, or nil for the default." "Location of the mu homedir, or nil for the default."
:type 'directory
:group 'mu4e :group 'mu4e
:type '(choice (const :tag "Default location" nil) :type '(choice (const :tag "Default location" nil)
(const :tag "Specify location" string)) (directory :tag "Specify location"))
:safe 'stringp) :safe 'stringp)
(defcustom mu4e-mu-binary (executable-find "mu") (defcustom mu4e-mu-binary (executable-find "mu")
@ -49,15 +48,14 @@ PATH, you can specify the full path."
:safe 'stringp) :safe 'stringp)
(defcustom mu4e-maildir (expand-file-name "~/Maildir") (defcustom mu4e-maildir (expand-file-name "~/Maildir")
"Your Maildir directory; by default, mu4e assumes "Your Maildir directory."
~/Maildir."
:type 'directory :type 'directory
:safe 'stringp :safe 'stringp
:group 'mu4e) :group 'mu4e)
(defcustom mu4e-get-mail-command "true" (defcustom mu4e-get-mail-command "true"
"Shell command to run to retrieve new mail; e.g. 'offlineimap' or "Shell command to run to retrieve new mail.
'fetchmail'." Common values are \"offlineimap\" and \"fetchmail\"."
:type 'string :type 'string
:group 'mu4e :group 'mu4e
:safe 'stringp) :safe 'stringp)
@ -107,10 +105,11 @@ personal message. This is used when indexing messages."
:group 'mu4e) :group 'mu4e)
(defcustom mu4e-search-results-limit 500 (defcustom mu4e-search-results-limit 500
"Maximum number of search results (or -1 for unlimited). Since "Maximum number of search results.
limiting search results speeds up searches significantly, it's Use -1 for no limit. Since limiting search results speeds up
useful to limit this. Note, to ignore the limit, use a prefix searches significantly, it's useful to limit this. Note, to
argument (C-u) before invoking the search." ignore the limit, use a prefix argument (C-u) before invoking the
search."
:type '(choice (const :tag "Unlimited" -1) :type '(choice (const :tag "Unlimited" -1)
(integer :tag "Limit")) (integer :tag "Limit"))
:group 'mu4e) :group 'mu4e)

View File

@ -51,8 +51,8 @@
(defcustom mu4e-view-fields (defcustom mu4e-view-fields
'(:from :to :cc :subject :flags :date :maildir :tags :attachments :signature) '(:from :to :cc :subject :flags :date :maildir :tags :attachments :signature)
"Header fields to display in the message view buffer. For the "Header fields to display in the message view buffer.
complete list of available headers, see `mu4e-header-info'." For the complete list of available headers, see `mu4e-header-info'."
:type (list 'symbol) :type (list 'symbol)
:group 'mu4e-view) :group 'mu4e-view)
@ -69,14 +69,14 @@ contact."
(defcustom mu4e-view-date-format "%c" (defcustom mu4e-view-date-format "%c"
"Date format to use in the message view, in the format of "Date format to use in the message view, in the format of
`format-time-string'." `format-time-string'."
:type 'string :type 'string
:group 'mu4e-view) :group 'mu4e-view)
(defcustom mu4e-view-image-max-width 800 (defcustom mu4e-view-image-max-width 800
"The maximum width for images to display; this is only effective "The maximum width for images to display.
if you're using an emacs with Imagemagick support, and This is only effective if you're using an emacs with Imagemagick
`mu4e-show-image' is non-nil." support, and `mu4e-show-image' is non-nil."
:group 'mu4e-view) :group 'mu4e-view)
(defcustom mu4e-view-scroll-to-next t (defcustom mu4e-view-scroll-to-next t