From 075925fe4dd9abf399904862eb97a75852bc870c Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 11 Feb 2025 19:12:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(init.el)=20Rewrite=20without=20usi?= =?UTF-8?q?ng=20use-package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/init.el b/init.el index ff6904d..abecb2b 100644 --- a/init.el +++ b/init.el @@ -2,46 +2,20 @@ ;; Source: https://gitlab.com/mmk2410/dot-emacs ;; Authors: Marcel Kapfer -;; Created: 2020-02-03 19:26 +;; Created: 2020-02-03 19:26, 2025-02-11 19:12 ;; License: This file is licensed under the GPLv3 License ;; This file only loads and evaluates my Emacs configuration ;; kept in config.org using Org Babel. ;; And it counts startup time. -;; Little welcome message -(message "Welcome to Emacs, starting now up.") +(message "Welcome to Emacs, starting up now.") -;; Save the time when init.el was started. (defvar mmk2410/init-el-start-time (current-time)) -;; Enable package management. -(package-initialize) +(require 'package) +(require 'org) -;; First add the required package archives and initialize it. -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) - -;; Configure package management basics. -;; Prefer newer packages. -(setq-default load-prefer-newer t) -;; Don't load packages automatically on startup. -(setq-default package-enable-at-startup nil) - -;; Install / enable use-package for handling following dependencies. -(unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) -(require 'use-package) - -;; Always ensure that packages are installed on the current system. -(setq use-package-always-ensure t) - -;; Use/load latest Org mode -(use-package org - :pin gnu) - -;; Load config.org file with org-babel (org-babel-load-file (expand-file-name "config.org" user-emacs-directory)) -;; Message the total startup time (message "Total init.el load time: %.2fs" (float-time (time-subtract (current-time) mmk2410/init-el-start-time)))