From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: What does use-package do? Date: Sat, 08 Oct 2022 09:55:14 +0300 Message-ID: <83sfjyls8d.fsf@gnu.org> References: <87czb253h3.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Payas Relekar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 08 08:57:02 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oh3ld-0006tT-6v for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Oct 2022 08:57:01 +0200 Original-Received: from localhost ([::1]:40326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh3lc-0006SR-1M for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Oct 2022 02:57:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh3jt-0005ft-Od for emacs-devel@gnu.org; Sat, 08 Oct 2022 02:55:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh3jt-0007Vo-4k; Sat, 08 Oct 2022 02:55:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ag/luV+TSEyDPybFT+qrwWL19Pe3ixCRuh/bwMsRkQs=; b=iSisupx/BF8H TkTGdDjQQpOF9CPs7CnEEFwXx8FjJ1aF6RpVCbX9jP075QwnfAObwE8IuG+aJ3zsznuPcTNaeOQda wlaC9/EYDNWVcKyr19/MZRR7i9opPQDr1VvZEy8ijmvXnAPWVSXDrFyHpohy0NIdbYTa19XQniZlM KMj5ErbqMPGUuNTM4QJIfHjIbe+wEQQmzeEoW1gWVUXSgatpcxIbN+OrfdH21vzl+TUOL2k3bpNme 63crjnhOtZMFZbFSBqgh7wNBnlTBM7D+RU6nwJBprVDtDYA7umaE1SbILySlgLb/vLiqdUZWoCyKg veb3+6NZaLTP1hlQ8ShEbA==; Original-Received: from [87.69.77.57] (port=1779 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh3js-0004D1-0G; Sat, 08 Oct 2022 02:55:12 -0400 In-Reply-To: <87czb253h3.fsf@gmail.com> (message from Payas Relekar on Sat, 08 Oct 2022 10:08:38 +0530) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297193 Archived-At: > From: Payas Relekar > Date: Sat, 08 Oct 2022 10:08:38 +0530 > > Richard Stallman writes: > > > Can someone send me a self-contained description of the job > > use-package does, from a user's perspective? > > > > I'm not asking about how it does that job, or how it works. > > use-package allows writing emacs configuration in a declarative manner, > rather than imperative. It does few more things: > > - Describe autoload dependencies by means of packages, commands, hooks > and keybindings, allowing faster startup without affecting UX > - Allow configuring/executing stuff before/after package loading > - Isolate configuration for individual packages in separate > s-expressions. > > In general, making things declarative has had huge improvement in my > config debug-ability, despite having 170+ packages currently loaded, > without significantly increasing startup time. I think reading this page will be much more effective as the answer to Richard's questions: https://jwiegley.github.io/use-package/keywords/