Configure loads with use-package correctly

This commit is contained in:
Wojciech Kozlowski 2017-08-27 16:25:44 +01:00
parent 4e30221196
commit 097221e724
3 changed files with 24 additions and 15 deletions

View File

@ -31,16 +31,21 @@
;; --------------------------------------------------------------------------
;; Parentheses highlighting.
;; --------------------------------------------------------------------------
(use-package rainbow-delimiters)
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
(use-package rainbow-delimiters
:defer t
:init
(add-hook 'prog-mode-hook 'rainbow-delimiters-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"
"IndianRed4"))
(use-package highlight-parentheses
:defer t
:init
(add-hook 'prog-mode-hook 'show-paren-mode)
(add-hook 'prog-mode-hook 'highlight-parentheses-mode)
:config
(setq hl-paren-colors '("#86DC2F"
"IndianRed1"
"IndianRed3"
"IndianRed4")))
;; --------------------------------------------------------------------------
;; Use UTF-8.

View File

@ -29,7 +29,8 @@
;; --------------------------------------------------------------------------
;; Load and configure `magit'.
;; --------------------------------------------------------------------------
(use-package magit)
(use-package magit
:defer t)
;; --------------------------------------------------------------------------
;; Diff mode settings.

View File

@ -30,11 +30,14 @@
;; Enable `workgroups'.
;; --------------------------------------------------------------------------
(use-package workgroups2)
(use-package workgroups2
:defer t
:config
;; Don't save. Workgroups are transient to the session.
(setq wg-emacs-exit-save-behavior nil)
(setq wg-workgroups-mode-exit-save-behavior nil))
;; Enable workgroups mode.
(workgroups-mode 1)
;; Don't save. Workgroups are transient to the session.
(setq wg-emacs-exit-save-behavior nil)
(setq wg-workgroups-mode-exit-save-behavior nil)
)