Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 50D44431FBC for ; Mon, 28 Dec 2009 14:27:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kqOUw77xJv6N for ; Mon, 28 Dec 2009 14:27:40 -0800 (PST) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by olra.theworths.org (Postfix) with ESMTP id EB342431FAE for ; Mon, 28 Dec 2009 14:27:39 -0800 (PST) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 62416C92EE; Mon, 28 Dec 2009 17:27:39 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 28 Dec 2009 17:27:39 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=smtpout; bh=b6r1mbt4tBDvWtBwc/a0ChhzQwE=; b=egf4HF2EhYyI48B5i0ADEUnWTJ38aX/y+I7oFgyjUZof6nOAOBe4EiOA9ESJdX4bJUjDI0xes/EGkSpcwzA3pVZtfWps1Nu5eIeZ1Avcl+f0Lo9Cw95D5eC1veM9/P3W8p9uiMiN0LwSSefEZvAzttBn26JjoHLJRQ/+UiSvztA= X-Sasl-enc: xk7nK+li+TYPG4QKowtKRiiuFKrmIhYU9+5ObvZgIpPB 1262039258 Received: from thinkpad.tsdh.de (p54AF2046.dip0.t-ipconnect.de [84.175.32.70]) by mail.messagingengine.com (Postfix) with ESMTPA id 242A149B480; Mon, 28 Dec 2009 17:27:37 -0500 (EST) From: Tassilo Horn To: Jameson Graef Rollins In-Reply-To: <20091228211812.GA10885@finestructure.net> (Jameson Graef Rollins's message of "Mon, 28 Dec 2009 16:18:12 -0500") References: <20091228211812.GA10885@finestructure.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Mail-Copies-To: never Date: Mon, 28 Dec 2009 23:27:30 +0100 Message-ID: <87k4w691kd.fsf@thinkpad.tsdh.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] modifying emacs keymap X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2009 22:27:42 -0000 Jameson Graef Rollins writes: Hi Jameson, > (add-hook 'notmuch-search-mode > (define-key notmuch-search-mode-map "A" 'notmuch-show-mark-read-then-archive-thread) > ) `notmuch-search-mode' is no hook, and even if it was, you couldn't add what you like, because that's no function. You would need to define a function that doesn that or wrap it in a lambda function. Anyway, this should do the trick: (define-key notmuch-search-mode-map "A" 'notmuch-show-mark-read-then-archive-thread) Bye, Tassilo