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

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

Re: using use-package


From: Phillip Lord
Subject: Re: using use-package
Date: Tue, 28 Jun 2016 14:10:35 +0100
User-agent: SquirrelMail/1.5.2 [SVN]

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.




reply via email to

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