about summary refs log blame commit diff
path: root/emacs/.emacs.d/wpc/wpc-package.el
blob: 5fd7a89982fb66a7ef8f67a45bc5b95e9df9c3e7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                      



                                                                             
                                                                         

                    
                                          
                                                                  



                                 
                     
 
                      
                            
;;; 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)

;; 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.
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)

(unless (package-installed-p 'use-package)
  ;; TODO: Consider removing this to improve initialization speed.
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile
  (require 'use-package))
(use-package general)

(provide 'wpc-package)
;;; wpc-package.el ends here