[Top][All Lists]

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

RE: how to extend `C-x 8` keymap?

From: Drew Adams
Subject: RE: how to extend `C-x 8` keymap?
Date: Mon, 7 Nov 2011 10:57:58 -0800

> + (define-key iso-transl-ctl-x-8-map "d" [?d])
> + (define-key iso-transl-ctl-x-8-map "D" [??])
> I get Debugger entered--Lisp error:
> (void-variable iso-transl-ctl-x-8-map)

Oh, right.

You should be able to do the same thing, but quoting the keymap var (actually, a
function that DTRT):

(define-key 'iso-transl-ctl-x-8-map "d" [?d])
(define-key 'iso-transl-ctl-x-8-map "D" [??])
            +-- quote mark

If that doesn't work then try this before using the unquoted sexps:

(require 'iso-transl)

reply via email to

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