diff options
authorSean Whitton <spwhitton@spwhitton.name>2019-01-20 15:17:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-01-20 15:17:53 -0700
commit0154efc1f20fca5c1c0bedd59920512d0f72b7a1 (patch)
parent93c5fb440b9467c8ee7d4c0cfbb5c578c74bc43d (diff)
add :types to defcustoms
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index b912d6d..0d17f55 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -16,6 +16,8 @@
- Improve README for new users
- Autoload some more functions users might want to bind
+- defcustoms now specify their types, making the customisation
+ interface more useful
- Refactoring/cleanup
0.2 (2018-12-31)
diff --git a/org-d20.el b/org-d20.el
index ed85fee..f53f1ee 100644
--- a/org-d20.el
+++ b/org-d20.el
@@ -59,22 +59,26 @@
A list of cons cells, where the car of each cell is a character's
name, and the cdr of each cell is that character's initiative
modifier as an integer."
+ :type '(alist :key-type string :value-type integer)
:group 'org-d20)
(defcustom org-d20-dice-sound nil
"Path to a sound file that `play-sound-file' can play."
+ :type 'string
:group 'org-d20)
(defcustom org-d20-letter-monsters nil
"Non-nil means individuate up to 26 monsters/NPCs with letters.
Rather than with digits."
+ :type 'boolean
:group 'org-d20)
(defcustom org-d20-continue-monster-numbering nil
"Non-nil means continue the numbering/lettering of monsters between types.
Rather than starting again for each type."
+ :type 'boolean
:group 'org-d20)
(defvar org-d20-mode-map