init.el (859B)
1 ;; start emacs server 2 ;; (from https://github.com/edvorg/emacs-configs/blob/master/init-real.el) 3 (require 'server) 4 (unless (server-running-p) 5 (server-start)) 6 7 ;; setup elpa addresses 8 9 (require 'package) 10 11 (setq package-enable-at-startup nil) 12 13 (setq package-archives '()) 14 (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t) 15 (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) 16 (add-to-list 'package-archives '("melpa-bleeding-edge" . "https://melpa.org/packages/") t) 17 18 (package-initialize) 19 20 ;; Bootstrap `use-package' 21 22 (unless (package-installed-p 'use-package) 23 (package-refresh-contents) 24 (package-install 'use-package)) 25 26 27 (require 'use-package) 28 29 (setq use-package-always-ensure t) 30 31 ;(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org")) 32 (load "~/.emacs.d/myinit.el")