From b9500a473b6273ca9c33b414c5d8ece620ebbf2c Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Mon, 30 Jun 2025 11:33:48 +0200 Subject: [PATCH] clean up --- init | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/init b/init index 85c8dd2c..821511ab 100644 --- a/init +++ b/init @@ -11,21 +11,18 @@ ;; Requirements: git gnuplot ledger ;;; Code: -;; early-init spacemacs-theme +;; Load `early-init-el' if not already +;; - Emacs 27.1 introduced early-init.el, which is run before init.el, +;; before package and UI initialization happens, and before site +;; files are loaded. In the case that early-init.el wasn't loaded +;; (e.g. using old emacs? Or this file directly loaded?), we do it +;; explicitly +;; - for org export async actions, e.g. as in +;; emacs -l ~/.config/emacs/init -l /tmp/org-export-processXYZ (require 'early-init - (concat - (file-name-directory (file-truename (or load-file-name - "~/.config/emacs/init"))) - "early-init.el") + (concat (file-name-directory (file-truename (or load-file-name "~/.config/emacs/init"))) + "early-init.el") t) -;; Load early-init-el if not already -;; - Emacs 27.1 introduced early-init.el, which is run before -;; init.el, before package and UI initialization happens, and -;; before site files are loaded. In the case that early-init.el -;; wasn't loaded (e.g. using old emacs? Or this file directly -;; loaded?), we do it explicitly -;; - for org export async actions, e.g. as in -;; emacs -l ~/.config/emacs/init -l /tmp/org-export-processXYZ (require 'pre-settings) ;; use-package delight functions variables (require 'which-key-settings) ;; https://melpa.org/#/which-key (require 'general-settings) ;; requires which-key