Start using init-packages

This commit is contained in:
Wojciech Kozlowski 2017-08-24 23:08:47 +01:00
parent 609c10545b
commit 82b6f5c3be

22
init.el
View File

@ -69,6 +69,7 @@
;; ;; ;; ;;
;; *********************************************************************** ;; ;; *********************************************************************** ;;
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Package configuration. ;; Package configuration.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
@ -78,22 +79,20 @@
'("melpa" . "http://melpa.milkbox.net/packages/") t) '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize) (package-initialize)
(unless (require 'use-package nil 'noerror) (load "~/.emacs.d/init-packages/init-packages.el")
(package-refresh-contents) (init-packages-init '(use-package
(package-install 'use-package)) magit
rainbow-delimiters
highlight-parentheses))
(use-package magit (use-package magit)
:ensure t)
(use-package rainbow-delimiters (use-package rainbow-delimiters)
:ensure t)
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode) (add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
(use-package highlight-parentheses (use-package highlight-parentheses)
:ensure t)
(add-hook 'prog-mode-hook 'highlight-parentheses-mode)
(add-hook 'prog-mode-hook 'show-paren-mode) (add-hook 'prog-mode-hook 'show-paren-mode)
(add-hook 'prog-mode-hook 'highlight-parentheses-mode)
(setq hl-paren-colors '("#86dc2f" (setq hl-paren-colors '("#86dc2f"
"IndianRed1" "IndianRed1"
"IndianRed3" "IndianRed3"
@ -109,6 +108,7 @@
;; ;; ;; ;;
;; *********************************************************************** ;; ;; *********************************************************************** ;;
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Load any custom variables. ;; Load any custom variables.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------