mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
Mention newcomer theme on "no-mouse" splash screen
* lisp/startup.el (normal-no-mouse-startup-screen): Add a button to toggle the "newcomers-presets" theme.
This commit is contained in:
parent
81d2a7a2f5
commit
c86b60c214
1 changed files with 25 additions and 0 deletions
|
|
@ -2566,6 +2566,31 @@ If you have no Meta key, you may instead type ESC followed by the character.)"))
|
|||
(get-scratch-buffer-create)))
|
||||
'follow-link t)
|
||||
(insert "\n")
|
||||
|
||||
(insert "New to Emacs? Consider enabling ")
|
||||
(insert-button "newcomer presets"
|
||||
'action (lambda (_button)
|
||||
(info "(emacs) Newcomers Theme"))
|
||||
'follow-link t)
|
||||
(insert ": ")
|
||||
(insert-button (if (custom-theme-enabled-p 'newcomers-presets)
|
||||
"Disable"
|
||||
"Enable")
|
||||
'action (lambda (button)
|
||||
(let ((inhibit-read-only t))
|
||||
(replace-region-contents
|
||||
(button-start button)
|
||||
(button-end button)
|
||||
(pcase (button-label button)
|
||||
("Enable"
|
||||
(load-theme 'newcomers-presets)
|
||||
"Disable")
|
||||
("Disable"
|
||||
(disable-theme 'newcomers-presets)
|
||||
"Enable"))))))
|
||||
|
||||
(insert "\n")
|
||||
|
||||
(save-restriction
|
||||
(narrow-to-region (point) (point))
|
||||
(insert "\n" (emacs-version) "\n")
|
||||
|
|
|
|||
Loading…
Reference in a new issue