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: Fri, 03 Dec 2021 08:57:15 +0200 Message-ID: References: <864k7ro07p.fsf@mail.linkov.net> 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="34398"; 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:f4kkUfTSVcn1FZCndR2eR4haDxU= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 03 07:58:11 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 1mt2WI-0008jg-Ne for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 07:58:10 +0100 Original-Received: from localhost ([::1]:58036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt2WG-0007uN-M8 for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 01:58:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt2Vg-0007Ff-Tx for emacs-devel@gnu.org; Fri, 03 Dec 2021 01:57:32 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:34690) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt2Vf-0001aJ-EQ for emacs-devel@gnu.org; Fri, 03 Dec 2021 01:57:32 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mt2Vd-0007vS-1C for emacs-devel@gnu.org; Fri, 03 Dec 2021 07:57:29 +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.249, 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:280807 Archived-At: --=-=-= Content-Type: text/plain Stefan Kangas [2021-12-02 Thu 03:17] wrote: > Yes, that also works. I've put the section further down, right before the "conclusion" section, even though I think being able to install packages and extend Emacs is a main feature and should be introduced to new users early on. Attached is the patch. It includes the tutorial section and the new button in the startup screen. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Exposing-package-management-to-users.patch Content-Description: Patch >From e523a05ee935e5ef65990dcba1c642a931fd1edc 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 (fancy-startup-tail): 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..2cc9c49c42 100644 --- a/etc/tutorials/TUTORIAL +++ b/etc/tutorials/TUTORIAL @@ -1099,6 +1099,25 @@ manual in the node called "Dired". The manual also describes many other Emacs features. +* 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. + + * CONCLUSION ------------ 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 --=-=-=--