Function: fancy-startup-tail
fancy-startup-tail is a byte-compiled function defined in
startup.el.gz.
Signature
(fancy-startup-tail &optional CONCISE)
Documentation
Insert the tail part of the splash screen into the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/startup.el.gz
(defun fancy-startup-tail (&optional concise)
"Insert the tail part of the splash screen into the current buffer."
(unless concise
(fancy-splash-insert
:face 'variable-pitch
"\nTo start...\t"
:link `("Open a File"
,(lambda (_button) (call-interactively 'find-file))
"Specify a new file's name, to edit the file")
"\t\t"
: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")
"\t"
:link `("Explore Packages"
,(lambda (_button) (call-interactively 'package-list-packages))
"Explore, install and remove Emacs packages (requires Internet connection)")
"\n"))
(fancy-splash-insert
:face 'variable-pitch "To quit a partially entered command, type "
:face 'default "Control-g"
:face 'variable-pitch ".\n")
(save-restriction
(narrow-to-region (point) (point))
(fancy-splash-insert :face '(variable-pitch font-lock-builtin-face)
"\nThis is "
(emacs-version)
"\n")
(fill-region (point-min) (point-max)))
(fancy-splash-insert :face '(variable-pitch (:height 0.8))
emacs-copyright
"\n")
(when auto-save-list-file-prefix
(let ((dir (file-name-directory auto-save-list-file-prefix))
(name (file-name-nondirectory auto-save-list-file-prefix))
files)
;; Don't warn if the directory for auto-save-list files does not
;; yet exist.
(and (file-directory-p dir)
(setq files (directory-files dir nil (concat "\\`" name) t))
(fancy-splash-insert :face '(variable-pitch font-lock-comment-face)
(if (= (length files) 1)
"\nAn auto-save file list was found. "
"\nAuto-save file lists were found. ")
"If an Emacs session crashed recently,\ntype "
:link `("M-x recover-session RET"
,(lambda (_button)
(call-interactively
'recover-session)))
" to recover the files you were editing."))))
(when concise
(fancy-splash-insert
:face 'variable-pitch "\n"
:link `("Dismiss this startup screen"
,(lambda (_button)
(when startup-screen-inhibit-startup-screen
(customize-set-variable 'inhibit-startup-screen t)
(customize-mark-to-save 'inhibit-startup-screen)
(custom-save-all))
(quit-windows-on "*GNU Emacs*" t)))
" ")
(when (or user-init-file custom-file)
(let ((checked (create-image "checked.xpm"
nil nil :ascent 'center))
(unchecked (create-image "unchecked.xpm"
nil nil :ascent 'center)))
(insert-button
" "
:on-glyph checked
:off-glyph unchecked
'checked nil 'display unchecked 'follow-link t
'action (lambda (button)
(if (overlay-get button 'checked)
(progn (overlay-put button 'checked nil)
(overlay-put button 'display
(overlay-get button :off-glyph))
(setq startup-screen-inhibit-startup-screen
nil))
(overlay-put button 'checked t)
(overlay-put button 'display
(overlay-get button :on-glyph))
(setq startup-screen-inhibit-startup-screen t)))))
(fancy-splash-insert :face '(variable-pitch (:height 0.9))
" Never show it again."))))