>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