improve startup time

This commit is contained in:
2025-06-29 18:25:18 +02:00
parent 65bd50b345
commit bed2960c61
5 changed files with 472 additions and 107 deletions

View File

@@ -184,18 +184,6 @@ already exists in the home directory."
(setq desktop-file-modtime (nth 5 (file-attributes (desktop-full-file-name))))))
)
)
;; (add-hook 'after-init-hook
;; 'desktop-settings-setup
;; (lambda ()
;; ;; No splash screen
;; (setq inhibit-startup-screen t)
;; ;; If the *scratch* buffer is the current one, then create a new
;; ;; empty untitled buffer to hide *scratch*
;; (if (string= (buffer-name) "*scratch*")
;; (new-empty-buffer))
;; )
;; t) ;; append this hook to the tail
;; auto revert buffer
@@ -236,17 +224,6 @@ with a drive letter and a colon."))
;; require final newlines in files when they are saved
(setq require-final-newline t)
;; don't show the startup screen
(setq inhibit-startup-screen t)
(use-package startup
:defer t
:init
(setq initial-major-mode 'fundamental-mode)
(setq initial-scratch-message "# This buffer is for text that is not saved.
"))
;; each line of text gets one line on the screen (i.e., text will run
;; off the right instead of wrapping around onto a new line)
(setq-default truncate-lines t)

View File

@@ -550,9 +550,7 @@ See also `dashboard-insert-section' for the sequence of elements."
(abbreviate-file-name el)))
(add-to-list 'dashboard-item-generators '(custom . dashboard-insert-custom))
(dashboard-setup-startup-hook)
(dashboard-open)
)
(dashboard-setup-startup-hook))
;; too slow if all levels are displayed for a medium large file,
;; therefore not all levels and if toggled on and mode default off

View File

@@ -12,10 +12,6 @@
;; omit warnings like: /opt/emacs-conf/lisp/org/oc-basic.el: Warning: buffer-substring is an obsolete generalized variable.
(setq byte-compile-warnings nil)
(eval-when-compile
(require 'use-package)) ;; requires bind-key
(setq use-package-verbose nil)
(setq use-package-compute-statistics t)
(use-package delight
:defer t) ;; used for use-package :delight, see delight-delighted-modes, defer b/c of awesome-tray

View File

@@ -10,14 +10,10 @@
;; Asana Math (debian texlive-fonts-extra)
;;; Code:
(use-package spacemacs-theme
:after (cl-lib) ;; spacemacs-common misses to load cl-lib
(use-package my-theme
:config
(setq spacemacs-theme-comment-bg nil)
(load-theme 'spacemacs-dark t)
)
(use-package my-theme
:config
(load-theme 'my t))
;; Test char and monospace:
@@ -54,8 +50,6 @@
((find-font (font-spec :name "courier"))
(set-frame-font "courier-10")))
(setq inhibit-compacting-font-caches t)
(use-package emojify
:if window-system
:commands emojify-mode