From 10a5e92ef61907ce2399f451dc30e70aecd5d3f6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 29 Sep 2023 22:32:29 +0100 Subject: (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. --- Emacs/.config/emacs/config.org | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index d2116e3..7248cfa 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -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. -- cgit v1.2.3-13-gbd6f