From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Payas Relekar Newsgroups: gmane.emacs.devel Subject: Re: What does use-package do? Date: Sat, 08 Oct 2022 10:08:38 +0530 Message-ID: <87czb253h3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26679"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.10; emacs 29.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 08 08:05:06 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 1oh2xO-0006o6-EK for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Oct 2022 08:05:06 +0200 Original-Received: from localhost ([::1]:39844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh2xN-0007wB-7x for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Oct 2022 02:05:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh1hP-0006S7-KE for emacs-devel@gnu.org; Sat, 08 Oct 2022 00:44:31 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:37715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh1hN-00060V-J6 for emacs-devel@gnu.org; Sat, 08 Oct 2022 00:44:31 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id d24so6194276pls.4 for ; Fri, 07 Oct 2022 21:44:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=O/y6hyTA4w3iVOvGnIjVHKiQVTXa/Ow7LOnzDkr/sN4=; b=J9+PtNfsaEvWpweRytZxzO0pAfLGhFtd8Y9s6dEJnHTeaznI/WUfueu1Tw8xjWgvBz yN7+2zhRMId84w5IoyGm8PDMnIEgLU/JOthNC2BR4CSQXCx9e5aPCL+vZHwr5tc2d4tF IlNVN8Edf2hk9OUQjqAag9U5tEwqaQV7RRI7Z5zEtxOvAXJfT3ytTbtagmMGPIFeFjEb 5QodKlOXgYEMwEzU04Yt3o3rEYHjYxzAWyRCIbnFm8p7Yu/JzZmyULEp4IJ+Vf1WuP87 Y6AVpE8igFUishy5v16ZBwEf1ICTLjvkcsw9+QSEyLpRcw4Pc6yRRcc+u/zv6KQtbL1o gt2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O/y6hyTA4w3iVOvGnIjVHKiQVTXa/Ow7LOnzDkr/sN4=; b=McH10ABtocdoJSXr3hObpvjfNpH4+UDV+jOXru4fnlfYQraBVpf/vWouMYSJwXK+TK cQL2Ozs8DoM0ZdYl5d0Tg41KWbMW67d+mRCHgX/DC4Pk3mAGNtqiPPQX7/Ehok9J0Mmq 6S9lK1J4w00y8AJRo/ZNBzosrJXUo2NpBmPeOEMuckamC52JkmKC90l4bpO3R89EAEcl vRxnXDYOV4xTbCoYT83BJUsv1dDp2IHMsAN/5Yzkpe9X5Ytg/0iRTswH/S8j2A0A7f1b hXVC87Z1QOs2FpZdRg5l+LWwl1XeAKPT4nZGjMv7DMujZ5JdBkMamrAEdlE4CCe9xZEC U0Cg== X-Gm-Message-State: ACrzQf3pl+6BiwASBK2CS2HnkXAPbjTCTERS27aRCljEZgtFh1E5iLxA cbsC3V2J7T9oOHN+V3VWrxATRKStrCQ= X-Google-Smtp-Source: AMsMyM4Qy7ffVwvWYMj6aLAYCqA5R/Ayy3R8vZ1xbyyQ2PKLDFVnBL5RwErn9fH+GQFUiOGaPRCKlQ== X-Received: by 2002:a17:902:f689:b0:178:3ede:a12b with SMTP id l9-20020a170902f68900b001783edea12bmr8403146plg.156.1665204267550; Fri, 07 Oct 2022 21:44:27 -0700 (PDT) Original-Received: from localhost ([150.107.26.19]) by smtp.gmail.com with ESMTPSA id x6-20020aa79566000000b0053e6d352ae4sm2483244pfq.24.2022.10.07.21.44.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 21:44:27 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=relekarpayas@gmail.com; helo=mail-pl1-x635.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 08 Oct 2022 02:04:09 -0400 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:297189 Archived-At: 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. --