(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:
@@ -257,13 +257,16 @@ of code using =#+RESULTS=) in an ephemeral buffer at startup!
|
|||||||
(setq
|
(setq
|
||||||
inhibit-startup-screen t
|
inhibit-startup-screen t
|
||||||
initial-major-mode 'org-mode
|
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
|
,#+author: %s
|
||||||
,#+description: Emacs v%s
|
,#+description: Emacs v%s
|
||||||
|
Booted in %s
|
||||||
Booted in %s!
|
" user-full-name emacs-version (emacs-init-time)))))))
|
||||||
" user-full-name emacs-version (emacs-init-time))
|
|
||||||
ring-bell-function 'ignore))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Blinking cursor
|
** Blinking cursor
|
||||||
Turn off blinking-cursor-mode as [[*Hl-line][hl-line]] is better.
|
Turn off blinking-cursor-mode as [[*Hl-line][hl-line]] is better.
|
||||||
|
|||||||
Reference in New Issue
Block a user