diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-29 00:31:53 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-29 00:31:53 +0800 |
| commit | ed2abc29486a9f5f4a9b76949ca3012f24a9bf69 (patch) | |
| tree | 614e16cd275e19084ee0feabc02531d8051f9086 /lisp/core/init-packages.el | |
| parent | fcca130402a0f1a022904088240188dcf7068c0e (diff) | |
| download | emacs.d-ed2abc29486a9f5f4a9b76949ca3012f24a9bf69.tar.gz emacs.d-ed2abc29486a9f5f4a9b76949ca3012f24a9bf69.tar.xz | |
Add basic configurations
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'lisp/core/init-packages.el')
| -rw-r--r-- | lisp/core/init-packages.el | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lisp/core/init-packages.el b/lisp/core/init-packages.el new file mode 100644 index 0000000..b7d56cf --- /dev/null +++ b/lisp/core/init-packages.el @@ -0,0 +1,52 @@ +;;; init-packages.el --- Package management -*- lexical-binding: t; -*- + +;; Copyright (C) 2026 Richard Qin +;; SPDX-License-Identifier: GPL-3.0-or-later + +;; Author: Richard Qin +;; This file is not part of GNU Emacs. + +;;; Commentary: + +;; Configure package archives and initialize package.el. +;; Use use-package for declarative package configuration. + +;;; Code: + +;; ------------------------------------------------------------ +;; Package archives +;; ------------------------------------------------------------ + +(require 'package) + +(setq package-archives + '(("gnu" . "https://elpa.gnu.org/packages/") + ("nongnu" . "https://elpa.nongnu.org/nongnu/") + ("melpa" . "https://melpa.org/packages/"))) + +;; Prefer GNU ELPA and NonGNU ELPA. +(setq package-archive-priorities + '(("gnu" . 30) + ("nongnu" . 20) + ("melpa" . 10))) + + +;; ------------------------------------------------------------ +;; Initialize package.el +;; ------------------------------------------------------------ + +(package-initialize) + + +;; ------------------------------------------------------------ +;; use-package +;; ------------------------------------------------------------ + +(require 'use-package) + +;; Enable package loading diagnostics. +(setq use-package-verbose t) + +(provide 'init-packages) + +;;; init-packages.el ends here |
