help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

defcustom :type to use for a key sequence?


From: Drew Adams
Subject: defcustom :type to use for a key sequence?
Date: Thu, 3 Nov 2005 11:49:15 -0800

Suppose I have this:

(defcustom the-key [(meta ?\ )] "...")
(define-key my-map the-key 'the-cmd))

A user might customize which key sequence is bound to `the-cmd'.

What :type is appropriate for the defcustom? I don't see a type ready-made
for key sequences.  Just `string'?  Or is a `choice' of `string' and (what
kind of?) `vector' appropriate?  How can the :type allow for any key
sequence (besides using just `sexp')?  Thx.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]