Mercurial > emacs
changeset 38397:6cc3d3a4025c
Add types to defcustoms.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 13 Jul 2001 10:20:15 +0000 |
parents | a8c996679183 |
children | 39aaf19c2537 |
files | lisp/play/fortune.el |
diffstat | 1 files changed, 40 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/play/fortune.el Fri Jul 13 09:31:16 2001 +0000 +++ b/lisp/play/fortune.el Fri Jul 13 10:20:15 2001 +0000 @@ -65,6 +65,7 @@ "Settings for fortune." :version "21.1" :group 'games) + (defgroup fortune-signature nil "Settings for use of fortune for signatures." :group 'fortune @@ -72,54 +73,78 @@ (defcustom fortune-dir "~/docs/ascii/misc/fortunes/" "*The directory to look in for local fortune cookies files." - :group 'fortune) -(defcustom fortune-file - (expand-file-name "usenet" fortune-dir) + :group 'fortune + :type 'directory) + +(defcustom fortune-file (expand-file-name "usenet" fortune-dir) "*The file in which local fortune cookies will be stored." - :group 'fortune) + :group 'fortune + :type 'file) + (defcustom fortune-database-extension ".dat" "The extension of the corresponding fortune database. Normally you won't have a reason to change it." - :group 'fortune) + :group 'fortune + :type 'string) + (defcustom fortune-program "fortune" "Program to select a fortune cookie." - :group 'fortune) + :group 'fortune + :type 'file) + (defcustom fortune-program-options "" "Options to pass to the fortune program." - :group 'fortune) + :group 'fortune + :type 'string) + (defcustom fortune-strfile "strfile" "Program to compute a new fortune database." - :group 'fortune) + :group 'fortune + :type 'file) + (defcustom fortune-strfile-options "" "Options to pass to the strfile program." - :group 'fortune) + :group 'fortune + :type 'string) + (defcustom fortune-quiet-strfile-options "> /dev/null" "Text added to the command for running `strfile'. By default it discards the output produced by `strfile'. Set this to \"\" if you would like to see the output." - :group 'fortune) + :group 'fortune + :type 'string) (defcustom fortune-always-compile t "*Non-nil means automatically compile fortune files. If nil, you must invoke `fortune-compile' manually to do that." - :group 'fortune) + :group 'fortune + :type 'boolean) + (defcustom fortune-author-line-prefix " -- " "Prefix to put before the author name of a fortunate." - :group 'fortune-signature) + :group 'fortune-signature + :type 'string) + (defcustom fortune-fill-column fill-column "Fill column for fortune files." - :group 'fortune-signature) + :group 'fortune-signature + :type 'integer) + (defcustom fortune-from-mail "private e-mail" "String to use to characterize that the fortune comes from an e-mail. No need to add an `in'." :type 'string :group 'fortune-signature) + (defcustom fortune-sigstart "" "*Some text to insert before the fortune cookie, in a mail signature." - :group 'fortune-signature) + :group 'fortune-signature + :type 'string) + (defcustom fortune-sigend "" "*Some text to insert after the fortune cookie, in a mail signature." - :group 'fortune-signature) + :group 'fortune-signature + :type 'string) ;; not customizable settings