From 7fdc0b06ab324792667d8058c45783f7c6551923 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 13 Mar 2020 11:18:30 +0100 Subject: [PATCH] Emacs: Move diminish into basics/early-packages.el. --- init.d/basics/early-packages.el | 13 +++++++++++++ init.d/basics/global-variables.el | 6 +----- init.el | 3 ++- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 init.d/basics/early-packages.el diff --git a/init.d/basics/early-packages.el b/init.d/basics/early-packages.el new file mode 100644 index 0000000..067c85f --- /dev/null +++ b/init.d/basics/early-packages.el @@ -0,0 +1,13 @@ +;;; early-packages.el --- Packages that need to be loaded early -*- lexical-binding: t; -*- + +;; Time-stamp: <2020-03-13T11:24:17+0100> + +;;; Commentary: + +;;; Code: + +;; Hide minor-mode from modeline. +(use-package diminish) + +(provide 'basics/early-packages) +;;; early-packages.el ends here diff --git a/init.d/basics/global-variables.el b/init.d/basics/global-variables.el index aa9e3d7..c227a42 100644 --- a/init.d/basics/global-variables.el +++ b/init.d/basics/global-variables.el @@ -1,9 +1,8 @@ ;;; global-variables.el --- Set some global variables. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-03-11T12:10:13+0100> +;; Time-stamp: <2020-03-13T11:17:28+0100> ;;; Commentary: -;; * Load diminish. ;; * Banish customizations. ;; * Fewer startup messages. ;; * Configure backup settings. @@ -14,9 +13,6 @@ ;;; Code: -;; Hide minor-mode from modeline. Loaded here because a lot of recipes use it. -(use-package diminish) - (use-package emacs :ensure nil :diminish abbrev-mode diff --git a/init.el b/init.el index 7f933b3..10d72d8 100644 --- a/init.el +++ b/init.el @@ -1,6 +1,6 @@ ;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-03-10T14:31:51+0100> +;; Time-stamp: <2020-03-13T11:23:01+0100> ;;; Commentary: ;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and @@ -15,6 +15,7 @@ (push (concat user-emacs-directory "init.d") load-path) (require 'basics/package-management) +(require 'basics/early-packages) (require 'basics/global-variables) (require 'basics/input) (require 'basics/buffers)