Emacs: basics/global-variables needs use-package.
This commit is contained in:
parent
8672985929
commit
c9b66392ab
|
@ -1,6 +1,6 @@
|
||||||
;;; package-management.el --- Initialize package management. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
;; * Sets up package sources and their priorities.
|
;; * Sets up package sources and their priorities.
|
||||||
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'basics/global-variables)
|
|
||||||
|
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(add-to-list 'package-archives
|
(add-to-list 'package-archives
|
||||||
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
|
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
|
||||||
|
@ -40,6 +38,9 @@
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(require 'use-package))
|
(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.
|
;; Always install packages if they are not present.
|
||||||
(use-package use-package-ensure
|
(use-package use-package-ensure
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
|
5
init.el
5
init.el
|
@ -1,6 +1,6 @@
|
||||||
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
|
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
;; Add path to init files.
|
;; Add path to init files.
|
||||||
(push (concat user-emacs-directory "init.d") load-path)
|
(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.
|
;; Set garbage collection threshold to 100 MiB (or 20 MiB) to speed up init.
|
||||||
;; It is reset at the end of the file.
|
;; It is reset at the end of the file.
|
||||||
(if slow-computer
|
(if slow-computer
|
||||||
|
@ -20,6 +18,7 @@
|
||||||
(setq gc-cons-threshold (* 100 1024 1024)))
|
(setq gc-cons-threshold (* 100 1024 1024)))
|
||||||
|
|
||||||
(require 'basics/package-management)
|
(require 'basics/package-management)
|
||||||
|
(require 'basics/global-variables)
|
||||||
(require 'basics/misc)
|
(require 'basics/misc)
|
||||||
(require 'basics/input)
|
(require 'basics/input)
|
||||||
(require 'basics/buffers)
|
(require 'basics/buffers)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user