help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using use-package


From: Rusi
Subject: Re: using use-package
Date: Tue, 28 Jun 2016 06:14:18 -0700 (PDT)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]