From 43b356933766807cff3cce9dda6955469f4df49c Mon Sep 17 00:00:00 2001 From: gxlin Date: Tue, 6 Jul 2021 22:00:15 +0800 Subject: Reorganized emacs config --- .emacs.d/lisp/init-package.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .emacs.d/lisp/init-package.el (limited to '.emacs.d/lisp/init-package.el') diff --git a/.emacs.d/lisp/init-package.el b/.emacs.d/lisp/init-package.el new file mode 100644 index 0000000..5e6a0c7 --- /dev/null +++ b/.emacs.d/lisp/init-package.el @@ -0,0 +1,14 @@ +(require 'package) +(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") + ("melpa" . "https://melpa.org/packages/"))) +(setq package-enable-at-startup nil) +(package-initialize) + +(dolist (package '(use-package)) + (unless (package-installed-p package) + (package-refresh-contents) + (package-install package))) +(require 'use-package) +(setq use-package-always-ensure t) + +(provide 'init-package) -- cgit v1.2.3