[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: don't hard-code keys
From: |
Emanuel Berg |
Subject: |
Re: don't hard-code keys |
Date: |
Sun, 02 May 2021 19:33:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Thibaut Verron wrote:
>> ‘\[COMMAND]’
>> stands for a key sequence that will invoke COMMAND, or ‘M-x
>> COMMAND’ if COMMAND has no key bindings.
>>
>> sounds like what I want but
>>
>> (substitute-command-keys "\[universal-argument]")
>>
>> :(
>
> You need to escape the backslash, otherwise \[ just becomes
> [ in the string.
Wo-ho!
(substitute-command-keys "\\[universal-argument]") ; C-u
:)
--
underground experts united
https://dataswamp.org/~incal