From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Tue, 28 Jun 2016 06:14:18 -0700 (PDT) Message-ID: <0566e644-b87b-46f9-91a5-b9c38befd55e@googlegroups.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467119732 18714 80.91.229.3 (28 Jun 2016 13:15:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 13:15:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 28 15:15:32 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 1bHsrQ-0006Bg-AV for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 15:15:28 +0200 Original-Received: from localhost ([::1]:36685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHsrP-0005zB-HH for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 09:15:27 -0400 X-Received: by 10.66.169.172 with SMTP id af12mr2398561pac.7.1467119659332; Tue, 28 Jun 2016 06:14:19 -0700 (PDT) X-Received: by 10.36.87.213 with SMTP id u204mr369413ita.10.1467119659286; Tue, 28 Jun 2016 06:14:19 -0700 (PDT) Original-Path: usenet.stanford.edu!r1no5199604ige.0!news-out.google.com!d62ni2592ith.0!nntp.google.com!jk6no5174664igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.201.197.73; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 123.201.197.73 User-Agent: G2/1.0 Injection-Date: Tue, 28 Jun 2016 13:14:19 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218331 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:110640 Archived-At: On Tuesday, June 28, 2016 at 6:40:47 PM UTC+5:30, Phil Lord wrote: > On Tue, June 28, 2016 2:02 pm, Rusi wrote: > > On Tuesday, August 11, 2015 at 2:55:50 AM UTC+5:30, Stefan Monnier wrote: > > > > > Returning to this old thread: > > I was trying to do: > > > > > > (global-set-key (kbd "C-x C-b") 'electric-buffer-list) > > (define-key electric-buffer-menu-mode-map (kbd "X") > > 'save-buffers-kill-emacs) > > > > > > 1st line -- ok > > 2nd naturally gives an error on startup > > > > `eval-after-load' or `with-eval-after-load'. > > use-package does this nicely, though. I've reduced my eval-after-load > usage substantially for use-package. Well I would have thought that needing eval-after-load and relatives is evidence of a badly written (in Stefan's sense) package For myself (as you seem to say) if use-package reduces all that imperative gunk I guess I'll use it