(Emacs)~fixed bug where boot up time in scratch buffer was wrong

I'm pretty sure we should be figuring this out after init, which is
why I put made a hook to insert the message when it would actually be
accurate.
This commit is contained in:
2023-09-29 22:32:29 +01:00
parent a0a5b2e05d
commit 10a5e92ef6

View File

@@ -257,13 +257,16 @@ of code using =#+RESULTS=) in an ephemeral buffer at startup!
(setq
inhibit-startup-screen t
initial-major-mode 'org-mode
initial-scratch-message (format "#+title: Scratch buffer
initial-scratch-message ""
ring-bell-function 'ignore)
(add-hook 'after-init-hook (proc
(with-current-buffer "*scratch*"
(goto-char (point-max))
(insert (format "#+title: Scratch buffer
,#+author: %s
,#+description: Emacs v%s
Booted in %s!
" user-full-name emacs-version (emacs-init-time))
ring-bell-function 'ignore))
Booted in %s
" user-full-name emacs-version (emacs-init-time)))))))
#+end_src
** Blinking cursor
Turn off blinking-cursor-mode as [[*Hl-line][hl-line]] is better.