From 82b6f5c3be69f89f6aaca44403c3352dfc86de41 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Thu, 24 Aug 2017 23:08:47 +0100 Subject: [PATCH] Start using init-packages --- init.el | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/init.el b/init.el index 16468c6..6286c62 100644 --- a/init.el +++ b/init.el @@ -69,6 +69,7 @@ ;; ;; ;; *********************************************************************** ;; + ;; -------------------------------------------------------------------------- ;; Package configuration. ;; -------------------------------------------------------------------------- @@ -78,22 +79,20 @@ '("melpa" . "http://melpa.milkbox.net/packages/") t) (package-initialize) - (unless (require 'use-package nil 'noerror) - (package-refresh-contents) - (package-install 'use-package)) + (load "~/.emacs.d/init-packages/init-packages.el") + (init-packages-init '(use-package + magit + rainbow-delimiters + highlight-parentheses)) - (use-package magit - :ensure t) + (use-package magit) - (use-package rainbow-delimiters - :ensure t) + (use-package rainbow-delimiters) (add-hook 'prog-mode-hook 'rainbow-delimiters-mode) - (use-package highlight-parentheses - :ensure t) - (add-hook 'prog-mode-hook 'highlight-parentheses-mode) - + (use-package highlight-parentheses) (add-hook 'prog-mode-hook 'show-paren-mode) + (add-hook 'prog-mode-hook 'highlight-parentheses-mode) (setq hl-paren-colors '("#86dc2f" "IndianRed1" "IndianRed3" @@ -109,6 +108,7 @@ ;; ;; ;; *********************************************************************** ;; + ;; -------------------------------------------------------------------------- ;; Load any custom variables. ;; --------------------------------------------------------------------------