Emacs: basics/global-variables needs use-package.

This commit is contained in:
tastytea 2020-02-26 23:30:21 +01:00
parent 8672985929
commit c9b66392ab
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
;;; package-management.el --- Initialize package management. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-26T23:05:38+0100>
;; Time-stamp: <2020-02-26T23:29:23+0100>
;;; Commentary:
;; * Sets up package sources and their priorities.
@ -10,8 +10,6 @@
;;; Code:
(require 'basics/global-variables)
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
@ -40,6 +38,9 @@
(eval-when-compile
(require 'use-package))
;; We need `my/file-last-modification', it needs `use-package'.
(require 'basics/global-variables)
;; Always install packages if they are not present.
(use-package use-package-ensure
:ensure nil

View File

@ -1,6 +1,6 @@
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-26T23:16:56+0100>
;; Time-stamp: <2020-02-26T23:30:13+0100>
;;; Commentary:
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
@ -11,8 +11,6 @@
;; Add path to init files.
(push (concat user-emacs-directory "init.d") load-path)
(require 'basics/global-variables)
;; Set garbage collection threshold to 100 MiB (or 20 MiB) to speed up init.
;; It is reset at the end of the file.
(if slow-computer
@ -20,6 +18,7 @@
(setq gc-cons-threshold (* 100 1024 1024)))
(require 'basics/package-management)
(require 'basics/global-variables)
(require 'basics/misc)
(require 'basics/input)
(require 'basics/buffers)