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

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

Re: backtick as key


From: Marco Wahl
Subject: Re: backtick as key
Date: Thu, 02 Jun 2016 15:20:40 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi!

> (global-set-key [(control \`)(control \})] 'ar-backticked2braced-atpt)
>
> sends error:
>
> <C-dead-grave> is undefined
> C-} is undefined
>
> While when running the command via M-x, messages:
>
> You can run the command ‘ar-backticked2braced-atpt’ with C-` C-}
>
> Any suggestions?

Use a keymap!

(global-set-key [(control \`) ]
 (let ((map (make-sparse-keymap)))
   (define-key map [(control \})] #'ar-backticked2braced-atpt)
 map))


HTH,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2


reply via email to

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