aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-09-29 22:32:29 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-09-29 22:32:29 +0100
commit10a5e92ef61907ce2399f451dc30e70aecd5d3f6 (patch)
tree42d9acce61a3b3c1872a4bedcfbe2a383d342d1c /Emacs/.config/emacs
parenta0a5b2e05d3beae7ed3d5ed14b6b65bbc811c7a9 (diff)
downloaddotfiles-10a5e92ef61907ce2399f451dc30e70aecd5d3f6.tar.gz
dotfiles-10a5e92ef61907ce2399f451dc30e70aecd5d3f6.tar.bz2
dotfiles-10a5e92ef61907ce2399f451dc30e70aecd5d3f6.zip
(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.
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r--Emacs/.config/emacs/config.org13
1 files changed, 8 insertions, 5 deletions
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.