diff options
| author | Wouter Bolsterlee <wouter@bolsterl.ee> | 2016-11-04 20:54:00 +0100 |
|---|---|---|
| committer | Filipe Silva <ninrod@users.noreply.github.com> | 2017-01-20 23:18:01 -0200 |
| commit | fe6351b8fe8553db59b52f48f9bb6e72bf0aa701 (patch) | |
| tree | 3dc59255f2efe9f402c2441dcbc4fe390c22f459 /evil-surround.el | |
| parent | 27dc66d5d8ee64917bf5077a4d408f41099622ed (diff) | |
Fix defcustom type specification for pairs-alist variable
Diffstat (limited to 'evil-surround.el')
| -rw-r--r-- | evil-surround.el | 7 |
1 files 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 |
