From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: New define-key syntax with custom keymap Date: Tue, 19 Oct 2021 16:27:14 +0200 Message-ID: <1b84123d-95e7-049b-6264-3708e2d404d1@inventati.org> References: <87k0i9dsup.fsf@gnus.org> <67e1333f-a339-2fc1-271b-40a860bf3edd@inventati.org> <87bl3ldru0.fsf@gnus.org> <87y26pccw7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9652"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 19 17:21:31 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcqvj-0002JK-Hb for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Oct 2021 17:21:31 +0200 Original-Received: from localhost ([::1]:42978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcqvi-0007R5-Cf for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Oct 2021 11:21:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcq5I-0000JJ-IS for emacs-devel@gnu.org; Tue, 19 Oct 2021 10:27:20 -0400 Original-Received: from confino.investici.org ([2a00:c38:11e:ffff::a020]:65251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcq5G-00049q-Ct for emacs-devel@gnu.org; Tue, 19 Oct 2021 10:27:20 -0400 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4HYbfp6XJnz10yR; Tue, 19 Oct 2021 14:27:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1634653634; bh=sCyKcBpvVERAzogTrEzsmczCAlLSFEC3YxLyCvTCWhM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=mW0eOTNQkk0jaA5Fyx4yRh3wTQE+ynqd9T48efpcaG7qlk5UfGrIw8BI0PkmSelfT X2zG2VzM/3EVsU+8tyx+askduy48eXEQ/dDaMNsKZRSeIp7ByoXqC67pFVE30miWBT ft8q4JdjWgyzfRbM8GbVbSKwtH1c6qaQMpPgDwrc= Original-Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4HYbfp5VtXz10w3; Tue, 19 Oct 2021 14:27:14 +0000 (UTC) In-Reply-To: <87y26pccw7.fsf@gnus.org> Content-Language: en-GB Received-SPF: pass client-ip=2a00:c38:11e:ffff::a020; envelope-from=manuel.uberti@inventati.org; helo=confino.investici.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.074, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277380 Archived-At: On 19/10/21 16:22, Lars Ingebrigtsen wrote: > Ah, I see. > > I put: > > (require 'gnus-sum) > (define-key gnus-summary-mode-map ["C-c C-n"] #'mu-cleanup-buffer) > > in my ~/.emacs and started an Emacs and Gnus, and the key was bound in > Gnus summary buffers. I see, thanks. But I am already using: (require 'mu-lib) At the top of my init.el, which requires the file where everything mu-* is defined. That's why I don't understand why it does not work with the new syntax but it does with the old one. -- Manuel Uberti www.manueluberti.eu