From fe6351b8fe8553db59b52f48f9bb6e72bf0aa701 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Fri, 4 Nov 2016 20:54:00 +0100 Subject: Fix defcustom type specification for pairs-alist variable --- evil-surround.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/evil-surround.el b/evil-surround.el index 98b1837..bc07d5b 100644 --- a/evil-surround.el +++ b/evil-surround.el @@ -65,8 +65,11 @@ Each item is of the form (TRIGGER . (LEFT . RIGHT)), all strings. Alternatively, a function can be put in place of (LEFT . RIGHT). This only affects inserting pairs, not deleting or changing them." :group 'surround - :type '(repeat (cons (regexp :tag "Key") - (symbol :tag "Surround pair")))) + :type '(alist + :key-type (character :tag "Key") + :value-type (choice + (cons (string :tag "Opening") (string :tag "Closing")) + (function :tag "Function")))) (make-variable-buffer-local 'evil-surround-pairs-alist) (defcustom evil-surround-operator-alist -- cgit v1.0