From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Thu, 30 Jun 2016 03:25:08 -0400 Message-ID: References: <20150805055619.13567.17B26335@ahiker.mooo.com> <17131863-cbb8-4a85-8470-490fe9a0c0d4@googlegroups.com> <66dceb24-5fef-4316-8c8b-e9a3e62b0fb8@googlegroups.com> <3594e2c6-bd02-412f-98df-9dd0f145277a@googlegroups.com> <01b4d996-aad3-44ff-a580-7950b25b7dc8@googlegroups.com> <87r3nbh3n3.fsf@russet.org.uk> <0566e644-b87b-46f9-91a5-b9c38befd55e@googlegroups.com> <18cc3e7d62270dbe3e40bb2b73087b60.squirrel@cloud103.planethippo.com> <4deb171d07e312f6e3cd3bae4317ac40.squirrel@cloud103.planethippo.com> <87furwvsh3.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467271572 11707 80.91.229.3 (30 Jun 2016 07:26:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2016 07:26:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 30 09:25:52 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIWMB-0002xo-P1 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 09:25:51 +0200 Original-Received: from localhost ([::1]:47406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIWM7-00048S-RF for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 03:25:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIWLb-0003zF-7a for help-gnu-emacs@gnu.org; Thu, 30 Jun 2016 03:25:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIWLY-0005US-1q for help-gnu-emacs@gnu.org; Thu, 30 Jun 2016 03:25:15 -0400 Original-Received: from smtp-as-01-06.vtxnet.net ([194.38.175.135]:44518 helo=smtp-as-01.vtxnet.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIWLX-0005UO-Rd for help-gnu-emacs@gnu.org; Thu, 30 Jun 2016 03:25:11 -0400 Original-Received: from smtp-as-01.vtxnet.net (smtp-as-01-04.vtxnet.net [194.38.175.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-as-01.vtxnet.net (Postfix) with ESMTPS id 633724C3D2; Thu, 30 Jun 2016 09:25:11 +0200 (CEST) Original-Received: from smtp-pri-03.vtxnet.net (smtp-pri-03-1.vtxnet.net [212.147.62.147]) by smtp-as-01.vtxnet.net (Postfix) with ESMTP id 9BA164C32D; Thu, 30 Jun 2016 09:25:09 +0200 (CEST) Original-Received: from fmsmemgm.homelinux.net (dyn.144-85-234-142.dsl.vtx.ch [144.85.234.142]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-pri-03.vtxnet.net (VTX Services SA) with ESMTP id 8EF9668B7E7; Thu, 30 Jun 2016 09:25:09 +0200 (CEST) Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C37B8AE123; Thu, 30 Jun 2016 03:25:08 -0400 (EDT) In-Reply-To: <87furwvsh3.fsf@russet.org.uk> (Phillip Lord's message of "Wed, 29 Jun 2016 18:02:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 194.38.175.135 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110665 Archived-At: > What about something like this below? We can now do something like: [...] > (add-hook 'after-load-functions > 'extend-key--after-load-function) Still relies basically on eval-after-load, which I think is brittle (and ugly). I think a cleaner way would be to introduce a `define-keymap'. Stefan