diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-04-06 07:34:05 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-04-06 07:34:05 -0400 |
| commit | d4f779d7d43bef2c655c1b3c44e5d92644989dca (patch) | |
| tree | b893c9da85b9d76414000095f6b476c527a0488b /.emacs.d/lisp/et-package.el | |
| parent | Replace slime with sly (diff) | |
| download | dotfiles-d4f779d7d43bef2c655c1b3c44e5d92644989dca.zip | |
Update emacs config to use project.el
Diffstat (limited to '.emacs.d/lisp/et-package.el')
| -rw-r--r-- | .emacs.d/lisp/et-package.el | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.emacs.d/lisp/et-package.el b/.emacs.d/lisp/et-package.el new file mode 100644 index 0000000..1a99b12 --- /dev/null +++ b/.emacs.d/lisp/et-package.el @@ -0,0 +1,38 @@ +;;; et-package.el --- Bootstrap Emacs package management and use-package -*- lexical-binding: t; -*- +;; +;;; Commentary: +;; +;;; Code: + +;; First, we want to setup package.el for installing packages. +;; This is emac's built-in package manager, and we'll use it +;; to install use-package itself. +;; +;; To list the packages and see what is avaiable, we can use +;; M-x list-packages. +(require 'package) + +;; Package archives are where we want to install packages from. +;; It is expected that we setup this variable before we call +;; package-initialize. +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/") + ("elpa" . "https://elpa.gnu.org/packages/"))) +(package-initialize) + +;; If use package isn't installed on the current system, +;; we want to build the package contents and install use-package. +;; +;; Do note that the package contents can get out of date, and there +;; is no automatic process here for refreshing them. Instead, we'll +;; need to do M-x package-refresh-contents occasionally. +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +(require 'use-package) +;; Always ensure anything used via use-package is installed. +(setq use-package-always-ensure t) + +(provide 'et-package) +;;; et-package.el ends here |