diff options
author | bd <bdunahu@gmail.com> | 2024-01-04 16:04:52 -0700 |
---|---|---|
committer | bd <bdunahu@gmail.com> | 2024-01-04 16:04:52 -0700 |
commit | 5ebf5174caf1142091048fa92a42dadf44382048 (patch) | |
tree | 8f6d3a9779fb8e8d3b0a2d32ea4e320a6ae5e3c1 /.config/emacs/early-init.el | |
parent | 5159c11ccbe67bb0fa8ea0856581b22f110607a8 (diff) |
Added early init file, fixes for cleaner start
Diffstat (limited to '.config/emacs/early-init.el')
-rw-r--r-- | .config/emacs/early-init.el | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.config/emacs/early-init.el b/.config/emacs/early-init.el new file mode 100644 index 0000000..8138bb3 --- /dev/null +++ b/.config/emacs/early-init.el @@ -0,0 +1,31 @@ +;; -*- lexical-binding: t; -*- + +; external package manager +(setq package-archives nil) + + +(defun bd/display-startup-time () + (message "Emacs loaded in %s with %d garbage collections." + (format "%.2f seconds" + (float-time + (time-subtract after-init-time before-init-time))) + gcs-done)) + +(add-hook 'emacs-startup-hook #'bd/display-startup-time) + + +(push '(menu-bar-lines . 0) default-frame-alist) +(push '(tool-bar-lines . 0) default-frame-alist) +(push '(background-color . "#000000") default-frame-alist) + + +(defun bd/display-startup-time () + (message "Emacs loaded in %s with %d garbage collections." + (format "%.2f seconds" + (float-time + (time-subtract after-init-time before-init-time))) + gcs-done)) + +(add-hook 'emacs-startup-hook #'bd/display-startup-time) + +(setq frame-inhibit-implied-resize t) |