From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Fleischer Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Package Installation in Tutorial Date: Thu, 02 Dec 2021 08:42:55 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:Fu6jy/FS/0QwovmVI8Z/qfLWz+E= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 02 07:49:14 2021 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 1msfu6-00036Y-Je for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 07:49:14 +0100 Original-Received: from localhost ([::1]:38272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msfu4-0001jx-JZ for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 01:49:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msfo7-0007OG-Vv for emacs-devel@gnu.org; Thu, 02 Dec 2021 01:43:04 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:44822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msfo6-0007Vw-4W for emacs-devel@gnu.org; Thu, 02 Dec 2021 01:43:03 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1msfo4-00060H-Ca for emacs-devel@gnu.org; Thu, 02 Dec 2021 07:43:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:280712 Archived-At: --=-=-= Content-Type: text/plain Stefan Kangas [2021-12-01 Wed 11:25] wrote: > LGTM, but I would prefer to put this after the section "Getting more > help". Hi, I moved it to be after the getting help section. I also added a button in the splash screen called "Exploring Packages". There are now 4 buttons so I arrange them in 2x2 format. Attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Exposing-package-management-to-users.patch Content-Description: Patch >From bbdd615f55398877f7c0162df7a12e5e12cc20f4 Mon Sep 17 00:00:00 2001 From: Daniel Fleischer Date: Wed, 1 Dec 2021 19:15:27 +0200 Subject: [PATCH] Exposing package management to users * etc/tutorials/TUTORIAL: section about package installation * lisp/startup.el: package list button --- etc/tutorials/TUTORIAL | 19 +++++++++++++++++++ lisp/startup.el | 8 ++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/etc/tutorials/TUTORIAL b/etc/tutorials/TUTORIAL index dcdb61f23e..6de81ca08b 100644 --- a/etc/tutorials/TUTORIAL +++ b/etc/tutorials/TUTORIAL @@ -1076,6 +1076,25 @@ corresponding command names (such as C-x C-f beside find-file). consult the Emacs Info manual as your primary documentation. +* INSTALLING PACKAGES +--------------------- + +Emacs has a rich set of packages written by the community, which +extends Emacs' capabilities. These features include support for new +languages, additional themes, plugins to integrate with external +applications and much much more. + +To install a package type M-x package-install and choose a +package. To uninstall, type M-x package-delete and choose a +package to remove. + +>> Type M-x package-install which-key to install + the 'which-key' package, for example. + +>> Type M-x package-delete which-key to delete + the package you just installed. + + * MORE FEATURES --------------- diff --git a/lisp/startup.el b/lisp/startup.el index d4bb338fc0..d78cc6d35d 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -1835,7 +1835,7 @@ fancy-startup-tail (unless concise (fancy-splash-insert :face 'variable-pitch - "\nTo start... " + "\nTo start... " :link `("Open a File" ,(lambda (_button) (call-interactively 'find-file)) "Specify a new file's name, to edit the file") @@ -1843,10 +1843,14 @@ fancy-startup-tail :link `("Open Home Directory" ,(lambda (_button) (dired "~")) "Open your home directory, to operate on its files") - " " + "\n\t" :link `("Customize Startup" ,(lambda (_button) (customize-group 'initialization)) "Change initialization settings including this screen") + " " + :link `("Explore Packages" + ,(lambda (_button) (call-interactively 'package-list-packages)) + "Explore, install and remove Emacs packages") "\n")) (fancy-splash-insert :face 'variable-pitch "To quit a partially entered command, type " -- 2.33.1 --=-=-= Content-Type: text/plain -- Daniel Fleischer --=-=-=--