2018-04-25 19:26:53 +02:00
|
|
|
;;; package.el --- My package configuration -*- lexical-binding: t -*-
|
|
|
|
;; Author: William Carroll <wpcarro@gmail.com>
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;; This module hosts all of the settings required to work with ELPA,
|
|
|
|
;; MELPA, QUELPA, and co.
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(require 'package)
|
2020-01-30 17:00:29 +01:00
|
|
|
|
|
|
|
;; Even though we're packaging our Emacs with Nix, having MELPA registered is
|
|
|
|
;; helpful to ad-hoc test out packages before declaratively adding them to
|
|
|
|
;; emacs/default.nix.
|
2019-03-06 18:08:01 +01:00
|
|
|
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
|
2018-04-25 19:26:53 +02:00
|
|
|
(package-initialize)
|
|
|
|
|
2019-03-12 00:04:57 +01:00
|
|
|
(unless (package-installed-p 'use-package)
|
2020-01-30 17:00:29 +01:00
|
|
|
;; TODO: Consider removing this to improve initialization speed.
|
2019-03-12 00:04:57 +01:00
|
|
|
(package-refresh-contents)
|
|
|
|
(package-install 'use-package))
|
|
|
|
(eval-when-compile
|
|
|
|
(require 'use-package))
|
2019-03-06 18:08:01 +01:00
|
|
|
(use-package general)
|
2018-04-25 19:26:53 +02:00
|
|
|
|
|
|
|
(provide 'wpc-package)
|
2019-01-13 20:33:17 +01:00
|
|
|
;;; wpc-package.el ends here
|