core-bootstrap.el (1531B)
1 ;;; core-bootstrap.el --- bootstrap for use-package 2 3 ;; Author: Mark Feller <mark.feller@member.fsf.org> 4 5 ;; This file is not part of GNU Emacs. 6 7 ;; This file is free software; you can redistribute it and/or modify 8 ;; it under the terms of the GNU General Public License as published by 9 ;; the Free Software Foundation; either version 3, or (at your option) 10 ;; any later version. 11 12 ;; This file is distributed in the hope that it will be useful, 13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ;; GNU General Public License for more details. 16 17 ;; You should have received a copy of the GNU General Public License 18 ;; along with this file. If not, see <http://www.gnu.org/licenses/>. 19 20 ;;; Commentary: 21 22 ;; Setup Emacs package repos and grab use-package for rest of package 23 ;; management. 24 25 ;;; Code: 26 27 (require 'package) 28 29 (setq package-user-dir "~/.cache/elpa") 30 (setq package-archives 31 '(("melpa-stable" . "https://stable.melpa.org/packages/") 32 ("melpa" . "https://melpa.org/packages/") 33 ("gnu" . "http://elpa.gnu.org/packages/") 34 ("org" . "http://orgmode.org/elpa/"))) 35 36 (package-initialize) 37 38 ;; bootstrap use-package 39 (unless (package-installed-p 'use-package) 40 (package-refresh-contents) 41 (package-install 'use-package) 42 (package-install 'diminish) 43 (package-install 'bind-key)) 44 45 (require 'use-package) 46 (setq use-package-always-ensure t) 47 48 (provide 'core-bootstrap) 49 50 ;;; core-bootstrap.el ends here