From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: What does use-package do? Date: Sat, 08 Oct 2022 18:46:31 +0600 Message-ID: <87sfjyqy8o.fsf@disroot.org> References: <87czb253h3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39688"; 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 15:03:56 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 1oh9Ui-000A5z-OO for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Oct 2022 15:03:56 +0200 Original-Received: from localhost ([::1]:46482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh9Uh-00079q-Ax for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Oct 2022 09:03:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh9Sx-0005wi-AC for emacs-devel@gnu.org; Sat, 08 Oct 2022 09:02:07 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:37626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh9Sv-0002yx-2J for emacs-devel@gnu.org; Sat, 08 Oct 2022 09:02:07 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3A4624C908; Sat, 8 Oct 2022 15:02:01 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id wpjDDeBPRNim; Sat, 8 Oct 2022 15:02:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665234095; bh=qW3UeZtsrkcUI0L2Riso4TwfLJw5GrENUK8KJYIAyv0=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=R/db1nbpkTBwhi9e3XhLrNr2XnS5g6GLRIjQi2Y203CdvzIAniKp5lvFHajXNisKb zSVMdf3vALidbAgNEApqMtmZAbtlaVwVxlmjYhgAbyQrDZbwIpGjaJhZoepTlvPDgT SdaqvBwib2R6LMrOnuVwzY7i19MHu7XAXr9gi5X6d1AOQaZyA7S9fyd7zP44hKv4xZ sZTR8LiOtMEq6iBGFzw73j0dlvZ9BplYPMNJSZU+dInB9h721RPyR9vPlTRMY6T1Jn PfekeF/IAU+9i7mLQdoo7Eo5yD1Muewcbqrfe4pxw88n7xLDgjCMHp824ZkI5gWEhx igk+dQIAtNP0A== In-Reply-To: <87czb253h3.fsf@gmail.com> (Payas Relekar's message of "Sat, 08 Oct 2022 10:08:38 +0530") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:297202 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Payas Relekar writes: > 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. > > -- > There is also a GNU ELPA package called Leaf (I'm using it). It is very similar to use-package, but somehow I like it more than use-package. There is also another GNU ELPA called setup.el, which uses context-sensitive macros to solve the same problem use-package and leaf solves. I think I like the setup.el approach, but I'm locked in due to the heavy use of Leaf in my init file ;-) =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmNBcScACgkQVTX89U2I YWvZZg//c4bMWB2A9QuAUGkkrqxjLWhIhlGNoWYMGFlR/3dVCxW6HDYkmQqKot1b VDu448Bwq5E8Ch/zTPzQk2wNKAciTwTl1am0HytM9DPeE1LiR6iL+woTqjHyAtMz LbKYNBpcd8fZ6fiY9ypbCIoj6phXO9uDVIwwJ6iM1zYE1Dc1qsZmT9KAaDgvHjhD LAbvSwuJ3Re9cSy9BSoyHZE5cQ7qg5e2MwyK1x/bjCvQQLOuO72rcnnwX5C6mAin i9zCJLmx401A+R2Th4vQ9DyneQQdnCmYUGSwrPIniuWow/w4q1sFmufoxRj1L8Hn dcb/W+MmA8VjbbvityIMNsrsuPJg1FC99URiGMMNq1EEg6mFvCNs4OU1+2TN1OqC VwGsHFDcBGftJrFmYfZ1NziyerK0PSsnG3q7F0YbbEVM2Fgp+g/KGgPXixOeorg+ w+VZuGyH9Qi0nRsrdY1MPJst0KEC6549ks75DDA5pYsq1/XVLu3uU8GEbSZbdl1P lETaYzW+U/Wja/XIfl63nXC19Wv/hPhG24Zm15kbtDFeZXM+9DLWRx3/Zg5yFFwo rJlCEmZIDFvkhpY4dn9Wi8gj2DVd456zs2+Hpcj8EZe9KJ+tqFzBD+xcAVJKwp5E AN9Z7dBb9T3a86UPnE2pGiD1OY7ImKJNgrQIZwV4kj/hBp6Had0= =fCIT -----END PGP SIGNATURE----- --=-=-=--