Move all of the package installation from the default package.el to quelpa. This has the main advantage of being able to update packages better. I have also got a few package coming from forks and custom repos. This also removes all of the `ensure t` from the use-package statements as we have already set `use-package-always-ensure` so its not needed.
32 lines
952 B
EmacsLisp
32 lines
952 B
EmacsLisp
;;; packages.el --- AMACS -*- lexical-binding: t -*-
|
|
;;
|
|
;; Copyright 2021 Practically.io All rights reserved
|
|
;;
|
|
;; Use of this source is governed by a BSD-style
|
|
;; licence that can be found in the LICENCE file or at
|
|
;; https://www.practically.io/copyright/
|
|
|
|
(require 'package)
|
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
|
("org" . "https://orgmode.org/elpa/")
|
|
("elpa" . "https://elpa.gnu.org/packages/")))
|
|
|
|
(package-initialize)
|
|
(unless package-archive-contents
|
|
(package-refresh-contents))
|
|
|
|
;; Initialize use-package on non-Linux platforms
|
|
(unless (package-installed-p 'use-package)
|
|
(package-install 'use-package))
|
|
|
|
(require 'use-package)
|
|
(setq use-package-always-ensure t)
|
|
|
|
(use-package quelpa)
|
|
(setq use-package-ensure-function 'quelpa)
|
|
|
|
(quelpa
|
|
'(quelpa-use-package
|
|
:fetcher git
|
|
:url "https://github.com/quelpa/quelpa-use-package.git"))
|
|
(require 'quelpa-use-package)
|