Move the use-package settings to init.el
This commit is contained in:
29
init.el
29
init.el
@@ -27,6 +27,35 @@
|
||||
;; I prefer using freedesktop’s desktop specification everywhere
|
||||
(load "xdg-paths")
|
||||
|
||||
;; Set up the package manager
|
||||
|
||||
;; Package archives
|
||||
|
||||
(require 'package)
|
||||
|
||||
;; GNU ELPA
|
||||
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
||||
;; MELPA Stable
|
||||
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
|
||||
;; MELPA
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
|
||||
;; Finally, initialise the package manager
|
||||
(package-initialize)
|
||||
|
||||
;; use-package is a really convenient way to install packages. It’s installed in 30.1, but let’s stay on the safe side.
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package))
|
||||
(require 'use-package)
|
||||
|
||||
(use-package use-package
|
||||
:custom
|
||||
(use-package-always-ensure t)
|
||||
(use-package-verbose nil))
|
||||
|
||||
(use-package bind-key)
|
||||
|
||||
;; I started moving my configuration to this Org file. It’s easier to document this way.
|
||||
(org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))
|
||||
|
||||
|
Reference in New Issue
Block a user