Add bootstrapping code for the package system and use-package
This is the first step to remove ELPA packages from my .emacs.d repository (as in Git).
This commit is contained in:
parent
7a4be35ed5
commit
a09bddc734
18
init.el
18
init.el
@ -1,6 +1,17 @@
|
||||
;; Initialize the package system
|
||||
;; Initialize the package system and use-package
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives
|
||||
'("gnu" . "http://elpa.gnu.org/packages/"))
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "https://melpa.org/packages/"))
|
||||
(add-to-list 'package-archives
|
||||
'("marmalade" . "http://marmalade-repo.org/packages/"))
|
||||
(package-initialize)
|
||||
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package))
|
||||
|
||||
;; Add path to my custom lisp functions
|
||||
(add-to-list 'load-path (concat
|
||||
user-emacs-directory
|
||||
@ -39,11 +50,6 @@
|
||||
'(nxml-attribute-indent 4)
|
||||
'(nxml-child-indent 2)
|
||||
'(nxml-outline-child-indent 4)
|
||||
'(package-archives
|
||||
(quote
|
||||
(("gnu" . "http://elpa.gnu.org/packages/")
|
||||
("melpa" . "https://melpa.org/packages/")
|
||||
("marmalade" . "http://marmalade-repo.org/packages/"))))
|
||||
'(package-selected-packages
|
||||
(quote
|
||||
(ace-window
|
||||
|
Loading…
Reference in New Issue
Block a user