From 7deac074046b1443197341c1eea3bd6e5a305e27 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Thu, 6 Feb 2020 00:20:36 -0500 Subject: [PATCH] emacs: use early-init for package info now --- emacs/early-init.el | 4 ++++ emacs/init.el | 18 ++++++------------ links | 1 + 3 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 emacs/early-init.el diff --git a/emacs/early-init.el b/emacs/early-init.el new file mode 100644 index 0000000..0398649 --- /dev/null +++ b/emacs/early-init.el @@ -0,0 +1,4 @@ +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("gnu" . "https://elpa.gnu.org/packages/"))) + +;; EOF diff --git a/emacs/init.el b/emacs/init.el index f0a1f14..8b66bf9 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -36,18 +36,6 @@ (add-hook 'prog-mode-hook #'subword-mode) (add-hook 'prog-mode-hook #'agw-prog-mode) -;; pkgdb -(setq package-enable-at-startup nil - package-archives '(("melpa" . "https://melpa.org/packages/") - ("gnu" . "https://elpa.gnu.org/packages/"))) - -(require 'package) -(package-initialize) - -(unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) - ;; macros (add-hook 'emacs-lisp-mode-hook #'agw-fp-mode) (add-hook 'lisp-mode-hook #'agw-fp-mode) @@ -71,6 +59,12 @@ (global-set-key (kbd "C-x C-") #'agw-key-map) +;; packages +(require 'package) +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + ;; theme (use-package base16-theme :ensure t) diff --git a/links b/links index 25b7c8b..1f976a2 100644 --- a/links +++ b/links @@ -22,6 +22,7 @@ build-system/makepkg.conf ~/.config/pacman/makepkg.conf computers/(hostname)/vconf ~/.vim/vconf emacs/custom.el ~/.config/emacs/custom.el emacs/data.el ~/.config/emacs/data.el +emacs/early-init.el ~/.config/emacs/early-init.el emacs/init.el ~/.config/emacs/init.el games/alephone/marathon-1.xml ~/.alephone/Marathon Preferences games/alephone/marathon-2.xml ~/.alephone/Marathon 2 Preferences