From 0154efc1f20fca5c1c0bedd59920512d0f72b7a1 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 20 Jan 2019 15:17:17 -0700 Subject: add :types to defcustoms --- NEWS.md | 2 ++ org-d20.el | 4 ++++ 2 files changed, 6 insertions(+) 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 -- cgit v1.2.3