[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to define a prefixed map for a minor mode?
From: |
Marcin Borkowski |
Subject: |
Re: How to define a prefixed map for a minor mode? |
Date: |
Sun, 07 Jun 2020 22:45:53 +0200 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2020-06-07, at 09:54, Jamie Beardslee <beardsleejamie@gmail.com> wrote:
>> (easy-mmode-defmap ecat-mode-map
>> `(((kbd "C-c .") . ecat-basic-map))
>> "Keymap for `ecat-mode'.")
>
> You're missing a couple of unquotes there -- that should be:
>
> `((,(kbd "C-c .") . ,ecat-basic-map))
As I said a minute ago - you're obviously right, that helped.
> Smerge-mode uses a prefix key (C-c ^) for all commands and this is done
> in pretty much the same way:
Yep, indeed I tried to mimick it, but forgot about unquoting.
Thanks,
--
Marcin Borkowski
http://mbork.pl